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

cvat.apps.dataset_manager.bindings.cvatimporterror: failed to import item ('obj_train_data/frame_3691', 'train'): malformed folder structure for image obj_train_data/frame_3691.jpg #8973

Open
2 tasks done
jxminjin opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jxminjin
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

Create a new project
Create a new task
-Upload frame_images in ".*jpg" format
-Upload annotation
-Select Ultranlytics YOLO Decteion 1.0
-Put label zipped

Expected Behavior

Uploading annotations success

Possible Solution

No response

Context

I got this issue:

cvat.apps.dataset_manager.bindings.cvatimporterror: failed to import item ('obj_train_data/frame_3691', 'train'): malformed folder structure for image obj_train_data/frame_3691.jpg

I have followed the steps that can be solved the current issues as follows:

  1. check the zip file sturcture and the structure was confirmed as suggested

yolo_dataset.zip/
├── obj.names
├── data.yaml
├── obj_train_data/
│ ├── frame_0000.jpg
│ ├── frame_0001.jpg
│ └── ...
├── obj_train_labels/
│ ├── frame_0000.txt
│ ├── frame_0001.txt
│ └── ...

  1. validate the zip file and it was validated and unzipped sucessfully it to check the structure and files. the all files are not contagious
  2. check the name of *.jpg" file is matched with .txt file which is annotation and every jpg files are exactly matched with their txt files
  3. check the data.yaml fiel is correctly formatted and in the ZIP's root directory and it the file is as following:

train: obj_train_data/
val: obj_train_data/

names:
0: referee
1: our_team
2: opponent_team
3: our_goalkeeper
4: opponent_goalkeeper
5: sports ball

the issue file is frame_3691.jpg
I have tried many things to correct it, but I have no problem at all.
It is located the desginated folder and has the matched txt file as well.
I think the cvat has serious problem with uploading annotation.

Environment

- docker version 27.4.0, build bde2b89
-
@jxminjin jxminjin added the bug Something isn't working label Jan 21, 2025
@jx153345
Copy link

jx153345 commented Feb 7, 2025

Yes, I also encountered the same problem. When I use CVAT exported zip, I can directly import tags, but if I decompress and compress it again, the resulting compressed file cannot import tags.
I use the Windows system for decompression and compression operations, and I am not sure if it is because I am using the Windows system instead of the Linux system for compression.

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