Skip to content

Fixed a bug related to handling COCO crowds - #66

Open
pauloabelha wants to merge 1 commit into
multimodallearning:masterfrom
pauloabelha:coco_crowd_bug
Open

Fixed a bug related to handling COCO crowds#66
pauloabelha wants to merge 1 commit into
multimodallearning:masterfrom
pauloabelha:coco_crowd_bug

Conversation

@pauloabelha

Copy link
Copy Markdown

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