Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small array issue in data process #6

Open
tshadley opened this issue Feb 22, 2019 · 0 comments
Open

Small array issue in data process #6

tshadley opened this issue Feb 22, 2019 · 0 comments

Comments

@tshadley
Copy link

tshadley commented Feb 22, 2019

Looking at

out_map[i] = np.maximum(out_map[i], DrawGaussian(out_map[i], keypoint[0:2], sigma=sigma))

I think there's a subtle bug here in that DrawGaussian will overwrite out_map[i] before np.maximum can evaluate the prior array. A quick fix is:

out_map[i] = np.maximum(out_map[i].copy(), DrawGaussian(out_map[i], keypoint[0:2], sigma=sigma))

This will affect any training data where two or more person pose points overlap within 43 pixels (given current gaussian settings). I don't know how it affects performance or loss though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant