-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
No usable annotations with COCO format, problem with "iscrowd" attribute #5027
Comments
Similarly, I am unable to load CVAT-exported "COCO 1.0"-formatted datasets with detectron2's COCO data loader. There is no indication of why the annotations are unusable; the images are just dropped without explanation. The data
|
I am facing the same issue; has there been a resolution yet? |
Same here |
same |
I am having the same issue, anyone figured out what is wrong with COCO annotations exported from CVAT? |
Same issue, very depressed. |
Hello, I found the method to deal with this issue. From this issue. You just need to run: # install datum
pip install 'git+https://github.com/cvat-ai/datumaro@develop#egg=datumaro[default]'
# convert the json file to the `is_crowd: 0`
datum convert -o './output' -f 'coco_instances' -i 'your.json' -if 'coco_instances' -- --segmentation-mode polygons |
I'm trying to apply instance segmentation to images of the wood piles:
The dataset I'm using was annotated in CVAT and then exported to COCO 1.0 format. The problem is that in most cases the "iscrowd" parameter is set to 1 (true), and when there are no cases with the "iscrowd" parameter set to 0, the training fails with an error. Please see Logs and Google Colab notebook in sections below.
Note that when there are some "iscrowd": 0 attributes in the exported annotations, the training successfuly finishes, but the number of instances in the training log is equal to the number of instances with "iscrowd" attribute set to zero.
So the question is: Is this a desirable behaviour? Can I do something about it? I would be grateful for any suggestions. Given the nature of my data and the difficulty of annotating it, I would like to train the model on as many instances as possible.
Instructions To Reproduce the Issue:
Please see this notebook on Google Colab
Logs or other relevant observations:
This is the output when there are no cases with the "iscrowd" parameter set to 0.
If I manually change at least one of the "iscrowd" attributes to 0 (false), another error is raised:
Environment:
The text was updated successfully, but these errors were encountered: