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

little bug about loss.py #1

Closed
FlowEternal opened this issue Apr 27, 2020 · 1 comment · Fixed by #2
Closed

little bug about loss.py #1

FlowEternal opened this issue Apr 27, 2020 · 1 comment · Fixed by #2

Comments

@FlowEternal
Copy link

FlowEternal commented Apr 27, 2020

pred_xyxy[:, :2] = pred[:, 2]/float(S) - 0.5 * pred[:, 2:4]
pred_xyxy[:, 2:4] = pred[:, 2]/float(S) + 0.5 * pred[:, 2:4]

should be changed to
pred_xyxy[:, :2] = pred[:, :2]/float(S) - 0.5 * pred[:, 2:4]
pred_xyxy[:, 2:4] = pred[:, :2]/float(S) + 0.5 * pred[:, 2:4]

and also for target_xyxy

@nuka137 nuka137 mentioned this issue Aug 5, 2020
motokimura added a commit that referenced this issue Aug 6, 2020
@motokimura
Copy link
Owner

Thank you for reporting.
This has been solved in PR #2 by nuka137.

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

Successfully merging a pull request may close this issue.

2 participants