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
allow convert_to_coco_dict for custom dataset without annotations #1683
Conversation
Please describe the problem first. Currently, the issue is empty. |
I think the issue already describes the problem clearly:) |
An easier solution is to let |
Maybe using
in https://github.com/facebookresearch/detectron2/blob/master/detectron2/data/datasets/coco.py#L321. |
I tested this, it works for me by just changing one line. |
Not sure whether detectron2/detectron2/data/datasets/coco.py Line 398 in e45cd68
|
By doing this, the evaluation will still be performed. But got all nan results. |
Now it should be fine. If there are no annotations at all, the converted coco json file will not contain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ppwwyyxx is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Fix #1684 . Allowing inference when annotations are not available for custom datasets.