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

Error when downloading mask #749

Closed
4sfaloth opened this issue Oct 2, 2019 · 4 comments · Fixed by #1352
Closed

Error when downloading mask #749

4sfaloth opened this issue Oct 2, 2019 · 4 comments · Fixed by #1352
Assignees
Labels
bug Something isn't working
Milestone

Comments

@4sfaloth
Copy link

4sfaloth commented Oct 2, 2019

Hi,

I am experiencing an issue when trying to download mask annotations for a dataset. I can correctly visualize the annotations on cvat, and I can also download the annotations as .xml but if i request the mask .png I get this error:
Exception at line 307: input type not supported

CVAT logs show the same thing. Any idea what may be happening?

thanks in advance

@azhavoro
Copy link
Contributor

Hi, @4sfaloth
Could you please attach your annotation in xml format?

@azhavoro azhavoro added the bug Something isn't working label Oct 10, 2019
@4sfaloth
Copy link
Author

@azhavoro thanks for following up and I am sorry for taking so long to respond, but I've been out and with no access to the server machine for the last week.

Here you go (had to zip it for some reason):
CvatMaskProblem.zip

I had to manually edit the task name and the image names for privacy concerns, but I believe that is not relevant for the case.
Thanks again for following up on this

@nmanovic nmanovic added this to the 1.0.0 - Beta milestone Oct 15, 2019
@nmanovic nmanovic added this to To do in Dataset framework (Datumaro) via automation Nov 20, 2019
@zhiltsov-max
Copy link
Contributor

I suppose it has been solved somewhere in between, or should be solved by #1352. Feel free to reopen.

@zhiltsov-max zhiltsov-max linked a pull request May 12, 2020 that will close this issue
9 tasks
Dataset framework (Datumaro) automation moved this from To do to Done May 13, 2020
@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented May 13, 2020

The problem should have been here: https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocotools/_mask.pyx#L307
as the old mask export implementation used pycocotools to convert polygons to masks.

It was fixed by changing the implementation to use Datumaro and then by disallowing truncated polygons with < 3 points in #975.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

4 participants