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

dump annotation error - constructing empty shapely linestring #1336

Closed
nmaxwell opened this issue Mar 31, 2020 · 4 comments
Closed

dump annotation error - constructing empty shapely linestring #1336

nmaxwell opened this issue Mar 31, 2020 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@nmaxwell
Copy link

I'm getting this error when I try to dump my annotations:

Can not dump annotations for the task. Code: 500. Message: "cvat.apps.engine.utils.InterpreterError: ValueError at line 90: LineStrings must have at least 2 coordinate tuples\n"

strange thing is my annotations only have points, no polylines, so not sure why linestrings are being made. I'm a bit worried that I won't be able to export my work, that it will be lost.

attaching the docker log
cvat-log.txt

thanks!

@nmanovic nmanovic added the bug Something isn't working label Mar 31, 2020
@nmanovic nmanovic added this to the 1.0.0 - Beta milestone Mar 31, 2020
@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Mar 31, 2020

Hello. Could you please describe what annotations does the task have and what is your version of CVAT? It looks like there are some interpolation mode shapes (tracks), which can only be bounding boxes, if you used UI to annotate images. Is is possible that you've imported annotations?

@nmaxwell
Copy link
Author

Hi,

Thanks for the response. I've been using 'Create Shape' to add 'Points' annotations, and then using 'Merge Shapes' to merge them into one track, across multiple frames, and setting a single attribute for the track.

I think there were instances where I implicitly interpolated, since I merged shapes across images that didn't have any shapes. Eg. add shape to image 50, add shape to image 55, merge them; this then auto-adds shapes to images 51, 52, 53, 54, which I then adjust. Maybe that counts as interpolation?

Now as for the version, I pulled develop originally on 3/19/2020, which is the version that gave the above error.

Last night, I pulled develop again, and did a 'docker-compose build'. I now get a different error:

Can not dump annotations for the task. Code: 500. Message: "FileNotFoundError: [Errno 2] No such file or directory: '/home/django/cvat/apps/annotation/cvat.py'\n"

with this log:
cvat-log.txt

thanks again

@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Mar 31, 2020

I suppose there can be some frames, where there is only 1 point then? Since this looks like the cause of the initial problem with interpolation.

If you want to stick to the current develop you probably need to do some migrations (@azhavoro), but be noted that this branch may be unstable a bit at present. You probably need to launch migrations for annotation app.

@zhiltsov-max
Copy link
Contributor

This bug should be fixed by #1344, so closing the issue. Feel free to reopen, if this still a problem.

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

No branches or pull requests

3 participants