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

Fixed a bug related to handling COCO crowds #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pauloabelha
Copy link

The model.py code for dealing with COCO crowds was handling the list of negative class ids, by checking 'torch.nonzero(gt_class_ids < 0).size()'; this can lead to bugs as 'torch.nonzero([-1 -2 -3] < 0).size()' is actually True. A better way of checking is doing 'len(torch.nonzero([-1 -2 -3] < 0).size()) > 0', which now works.

… was handling the list of negative class ids, by checking 'torch.nonzero(gt_class_ids < 0).size()'; this can lead to bugs as 'torch.nonzero([-1 -2 -3] < 0).size()' is actually True. A better way of checking is doing 'len(torch.nonzero([-1 -2 -3] < 0).size()) > 0', which now works.
@pauloabelha pauloabelha changed the title Fixed a bug related to handling COCO crowds. Before the fix, the code… Fixed a bug related to handling COCO crowds Dec 10, 2018
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 this pull request may close these issues.

1 participant