PaddleCV-SIG / PaddleLabel

飞桨智能标注,让标注快人一步

Home Page:https://paddlecv-sig.github.io/PaddleLabel/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

paddlelabel导出的yolo voc,paddleclas无法使用

andyz168 opened this issue · comments

导出的train_list.txt内容如下

JPEGImages\230209_075442_0000000009_CAM2_NG.jpg Annotations\230209_075442_0000000009_CAM2_NG.txt
JPEGImages\230209_080039_0000000092_CAM2_NG.jpg Annotations\230209_080039_0000000092_CAM2_NG.txt

paddleclas2.4.0需要的格式,在加载数据的时候,labels需要转换成int,是一个分类标签,但是这有个问题,一张图片可能会有多个标签(分类)
File "/home/aistudio/PaddleClas-2.4.0/ppcls/data/dataloader/imagenet_dataset.py", line 46, in _load_anno self.labels.append(np.int64(l[1])) ValueError: invalid literal for int() with base 10: 'Annotations\\230209_075442_0000000009_CAM2_NG.xml'

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.