-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Export error when there are invalid polygons in the overlapping frames (shapely.errors.TopologicalError) #2851
Comments
Hi, @fengyach Do you happen to know how we can create "invalid" polygon on UI? |
@bsekachev Hello! thank you very much for your comment! I have an example here: Also, I have created a PR related to the issue, some sort of 'quick fix', would it be possible if you could check it out as well? |
Okay, got it. If we speak about polygons with intersections, they are legal in CVAT (at least we cannot call them invalid) and we should not prevent creating them on UI. |
At least it has to be possible to export the annotations in any case. I also tried to change the frame range of each segment to not include any overlapping frames numbers anymore, however to no avail. How can I get to my annotations bypassing the web interface or this error in overlapping frames? |
Hello! this is fixed via PR 2852 :) I believe it is already merged to develop. |
My actions before raising this issue
Expected Behaviour
Export of the datasets should go through without any issues.
Current Behaviour
When there are invalid polygons in the overlapping frames, a notification pops out stating the export cannot be done, and an api call error stating:
shapely.errors.TopologicalError: The operation 'GEOSIntersection_r' could not be performed
Therefore blocking the export.
(in frames that have no overlapping, the invalid polygon does not block the export)
Possible Solution
Steps to Reproduce (for bugs)
Context
We need the exported points' coordinates for further ML model training.
Your Environment
The text was updated successfully, but these errors were encountered: