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

Cannot upload YOLO annotations generated from dump annotations #2473

Closed
kairikibear opened this issue Nov 23, 2020 · 5 comments · Fixed by #3091
Closed

Cannot upload YOLO annotations generated from dump annotations #2473

kairikibear opened this issue Nov 23, 2020 · 5 comments · Fixed by #3091
Assignees
Labels
bug Something isn't working

Comments

@kairikibear
Copy link

kairikibear commented Nov 23, 2020

My actions before raising this issue

I have a dataset i want to label, but i want to incorporate exisitng labels of the dataset (detection dataset, i want to add attributes)

I experimented to see if it was possible through the upload annotation feature and did exactly this :

  1. Created a small toy dataset
  2. Labelled the images
  3. Saved the annots
  4. Dump the annotations to yolo format
  5. Upload again with yolo format

And instead of working as intended, i have met with this error :
image

I immediately checked the log and traced the error all the way to this file

in which i surmise the error comes from the absence of the 'size' property of 'image' being None, which is funnily caused by the absence of an images.meta file judging from these lines, documented nowhere.

I also thought that somehow i did something that makes image info is not passed to the constructor of the extractor, but seems like this shows it was not the case.

Expected Behaviour

The yolo annotation can be uploaded normally without anything on the way.

Current Behaviour

The error aforementioned

Possible Solution

Better documentations regarding such subjects if it was NOT documented, or bugfix if it was a bug / error

Steps to Reproduce (for bugs)

Mentioned above

Context

Your Environment

This commit hash 3fb3f67
Website says version 1.1rc0

@zhiltsov-max
Copy link
Contributor

Hi.
It is more of a bug than something undocumented, because this image information is passed here and the user is not expected to provide it. Could you help with reproducing this issue? How did you add images to the task?

@zhiltsov-max zhiltsov-max added the bug Something isn't working label Nov 23, 2020
@kairikibear
Copy link
Author

Thanks for the response! I uploaded the image directly using the direct file upload and nothing else out of ordinary

@dyt811
Copy link

dyt811 commented Feb 14, 2021

Reproduced the issue using a small 5 images test data set in both Win10 / Ubuntu20 OS (I was originally hoping to incorporate my new label txt files are Windows based and I thought CRLF was originally the problem before running into this issue).

Further testing in both OS suggests the issue is more than CRLF as default YOLO 1.1 label zip output from CVAT in YOLO 1.1 format cannot be imported back into itself even before I attempt to incorporate my own label. Built based on latest Master branch #916dd6d on both Ubuntu20 and Windows 10 host.

Server version: 1.2
Core version: 3.10.0
Canvas version: 2.2.1
UI version: 1.13.3

@nmanovic
Copy link
Contributor

@yasakova-anastasia , could you please take the issue and fix?

@DmitriyOparin , could you please add test?

@DmitriyOparin
Copy link
Contributor

@nmanovic, yes, sure

@yasakova-anastasia yasakova-anastasia modified the milestones: 1.3.0-alpha, 1.3.0-beta Feb 25, 2021
@nmanovic nmanovic removed this from the 1.3.0-beta milestone Mar 8, 2021
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

Successfully merging a pull request may close this issue.

7 participants