PaddleCV-SIG / PaddleLabel

飞桨智能标注,让标注快人一步
https://paddlecv-sig.github.io/PaddleLabel/
Apache License 2.0
240 stars 39 forks source link

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

Closed andyz168 closed 1 year ago

andyz168 commented 1 year ago

导出的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'

github-actions[bot] commented 1 year ago

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.