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 annotations (YOLO 1.1 format) #8991

Open
2 tasks done
cait-newport opened this issue Jan 24, 2025 · 1 comment
Open
2 tasks done

Cannot upload annotations (YOLO 1.1 format) #8991

cait-newport opened this issue Jan 24, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cait-newport
Copy link

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Steps to Reproduce

I created a new project and a task and uploaded images I want to label (bounding box). When I try to upload annotations, I get the following error:

"Could not upload annotation for the cvat.apps.dataset_manager.bindings.CvatDatasetNotFoundError: Check format docs. Dataset must contain a file: "obj.data"

I thought the issue was with the paths for the labels and images. I tried making a new project, uploading 10 images, annotating them, and exporting the results. I then copied the folder paths exactly as they were in the exported folder (e.g. project_name/obj_train_data/image_0000.txt). Within the project_name folder, there are files called obj.data, obj.names, train.txt. I have then compressed the project_name folder and tried to upload that.

I have tried many variations on this (e.g. different folder paths, adding a dataset.yaml, including the images folder when I upload the annotations) but I always get the same error. I have included a log of the error.

I am also including the zip file I used to upload the annotations.

testing.zip

cvat_error_log.txt

Expected Behavior

No response

Possible Solution

No response

Context

Dataset size: 8786 images
The dataset has already been annotated but I know there are errors in some of the bounding boxes. I am not sure if these errors (e.g. negative numbers) would cause the issues, but I can view those images and bounding boxes when matplotlib.

Environment

OS: MacOS Sonoma 14.7
Browser: Google Chrome
CVAT Server version: 2.23.2
CVAT UI version: 1.67.0
@cait-newport cait-newport added the bug Something isn't working label Jan 24, 2025
@bsekachev
Copy link
Member

bsekachev commented Jan 24, 2025

If to extract your archive on Linux (WSL), I may see it has the following structure:

__MACOSX/
    testing/
        /._obj.data
        /._obj.names
        /._train.txt
        /obj_train_data/

Unzipping on Mac extracting correct structure. So, this is Mac only related issue.
Anyway, I believe we should add support for such mac os created archives in CVAT.

@zhiltsov-max

https://superuser.com/questions/104500/what-is-macosx-folder-i-keep-seeing-in-zip-files-made-by-people-on-os-x
https://stackoverflow.com/questions/10924236/mac-zip-compress-without-macosx-folder

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