嘉楠官网训练模型上传数据集时出现如下问题:Cannot destructure property 'name' of 'obj' as it is undefined.

Viewed 67

应该不是文件命名方式的问题吧以下是我无法上传的压缩包中的一个文件命名形式:

<annotation>
<folder/>
<filename>0c568786cc09e0a1_output_jpg.rf.619d55b0e1587556e89a159ebcb2d64a.jpg</filename>
<path>0c568786cc09e0a1_output_jpg.rf.619d55b0e1587556e89a159ebcb2d64a.jpg</path>
<source>
<database>roboflow.com</database>
</source>
<size>
<width>640</width>
<height>480</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>downstair</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<occluded>0</occluded>
<bndbox>
<xmin>30</xmin>
<xmax>534</xmax>
<ymin>324</ymin>
<ymax>473</ymax>
</bndbox>
</object>
<metadata> </metadata>
</annotation>

以下是我成功上传的文件命名形式:

<annotation>
<folder/>
<filename>image1_jpeg_jpg.rf.656893cd87177d08a95621dd56729680.jpg</filename>
<path>image1_jpeg_jpg.rf.656893cd87177d08a95621dd56729680.jpg</path>
<source>
<database>roboflow.com</database>
</source>
<size>
<width>416</width>
<height>416</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>Puddle</name>
<pose>Unspecified</pose>
<truncated>0</truncated>
<difficult>0</difficult>
<occluded>0</occluded>
<bndbox>
<xmin>22</xmin>
<xmax>280</xmax>
<ymin>92</ymin>
<ymax>290</ymax>
</bndbox>
</object>
<metadata> </metadata>
</annotation>

都是roboflow上直接下载下来的数据集,不知道是什么情况

2 Answers

VOC格式xml文件
image.png

您好,是文件名的问题,不要包含多个.和jpg这种后缀的命名

礼貌请教一下:但是为什么像这样命名有的数据集压缩包是可以上传的呢?

上传的时候不会检查图片命名,但是训练的时候会对数据进行拆分读取,压缩包内的数据是用户自己命名的,系统无法控制,上传的图片应该不会有这个问题

目前我更改了所有文件的命名

<filename>-2_PNG_jpgrf3b307ea0801bb84b0bec412364b1023f</filename>
<path>-2_PNG_jpgrf3b307ea0801bb84b0bec412364b1023f</path>

但是还是会出现这个报错
上传失败!Cannot destructure property 'name' of 'obj' as it is undefined.