-
Notifications
You must be signed in to change notification settings - Fork 3k
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
AssertionError when dumping a dataset after I uploaded a MOTS annotation. #3360
Comments
Hi. Please describe the uploaded annotations more precise so we could reproduce the problem. As a quick solution for the format conversion problem, you can try to use Datumaro for this:
Reference: https://github.com/openvinotoolkit/datumaro/blob/develop/docs/user_manual.md#convert-datasets |
I actually managed to solve the problem. There was a faulty track on the annotations, and removing that particular faulty track solved the problem. I still don't know why that happened though. The annotations were annotated in CVAT a while ago by a colleague, and I was handed these MOTS images and instances, I'm not really sure about the details. Unfortunately, while the problem in CVAT is solved, another problem arose. The dumped COCO annotations are reversed (eg. id: 1 is image number 70, the last image in the task, id: 2 is 69, and so on). Quite similar to this issue opened a few days ago: EDIT: For datumaro, the |
Thanks for the information, it is really helpful. Regarding the |
Yes that's right, I'm trying to export in COCO format. Here is the stack trace of the error: 2021-06-29 11:40:52,660 INFO: Exporting the dataset Thanks a lot in advance! |
@zhiltsov-max |
@Saharkakavand, please explain what's on the screenshots. It looks like segmentation masks from the "Segmentation Mask" format. If it is true, you should look in the |
@zhiltsov-max |
This format uses 8 bits per instance code, so the maximum number of distinct instances should be 256. I assume, there could be more instances than this number. Consider using another format (COCO, Datumaro, CVAT for images, Cityscapes for example). There are also few options, but they require some changes in code. |
@zhiltsov-max |
My actions before raising this issue
Expected Behaviour
Dump to COCO 1.0 JSON
Current Behaviour
This assertion error shows up, no matter what kind of dump I choose. The error that shows up before that is
assert shape["frame"] > curr_frame
.I have 8 other datasets that have worked fine, with no errors whatsoever. Only this one has this problem for some reason.
Steps to Reproduce (for bugs)
Context
I want to get the COCO annotations from an annotated MOTS PNG dataset.
Your Environment
I tried it on two environments with the same outcome:
The text was updated successfully, but these errors were encountered: