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

格式转换,另加一个报错 #20

Open
yyqAlisa opened this issue Mar 9, 2023 · 1 comment
Open

格式转换,另加一个报错 #20

yyqAlisa opened this issue Mar 9, 2023 · 1 comment

Comments

@yyqAlisa
Copy link

yyqAlisa commented Mar 9, 2023

label x y w h pt1x pt1y pt2x pt2y pt3x pt3y pt4x pt4y

原本的数据是labelme标注的,是图片和标签,图片是jpg格式,标签是json结尾的格式。我自己转换成了 yolov5的格式,例子如下
0 0.4583984374999998 0.14062499999999992 0.39101562499999987 0.15069444444444435。
请问你们的格式是怎么转换的
另外还有个bug,

Scanning '/app/dataset/fourth_project/plate_number/plate_dataset_1/labels/train' for images and labels... 1305 found, 0 missing, 0 empty, 1305 corrupted: 100%|██████████| 1305/1305 [00:39<00:00, 32.67it/s]
New cache created: /app/dataset/fourth_project/plate_number/plate_dataset_1/labels/train.cache
Scanning '/app/dataset/fourth_project/plate_number/plate_dataset_1/labels/train.cache' for images and labels... 1305 found, 0 missing, 0 empty, 1305 corrupted: 100%|██████████| 1305/1305 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/home/anaconda3/envs/py_37/lib/python3.7/contextlib.py", line 130, in exit
self.gen.throw(type, value, traceback)
File "/app/plate_number/Chinese_license_plate_detection_recognition-main/utils/torch_utils.py", line 32, in torch_distributed_zero_first
yield
File "/app/plate_number/Chinese_license_plate_detection_recognition-main/utils/face_datasets.py", line 72, in create_dataloader
image_weights=image_weights,
File "/app/plate_number/Chinese_license_plate_detection_recognition-main/utils/face_datasets.py", line 166, in init
labels, shapes = zip(*cache.values())
ValueError: not enough values to unpack (expected 2, got 0)

这cache的值是什么

@dangzheng0430
Copy link

同问,我也遇到这个问题,您解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants