Problem entering with YOLO TXT label

Hi,

I am having problems updating YOLO TXT labels.

I am using the recommended format, like:
0 0.5 0.25 0.15 0.3

for
class x_center y_center w h

with all numbers normalized.

However, when uploading, the following error is appearing: “error parsing YOLO TXT; no valid boxes found”.

Hi @silvada95,

How is your directory structure set up for your dataset? You must use the exact format as specified in our YOLO TXT uploader guide. For example:

.
├── classes.txt
├── data.yaml
├── test
│   ├── images
│   │   ├── cubes-23im33f2.jpg
│   │   ├── cubes-23im858s.jpg
│   │   ...
│   │   └── cubes-23j4k0rk.jpg
│   └── labels
│   │   ├── cubes-23im33f2.txt
│   │   ├── cubes-23im858s.txt
│   │   ...
│   │   └── cubes-23j4k0rk.txt
└── train
    ├── images
    │   ├── blue-23ijdngd.jpg
    │   ... 
    │   └── yellow-23ijdp4o.jpg
    └── labels
    │   ├── blue-23ijdngd.txt
    │   ... 
    │   └── yellow-23ijdp4o.txt

6 directories, 142 files

Note the need for classes.txt, data.yaml, and the separate images and labels directories under test/train. At the bottom of the article I linked to is an example “cubes on a conveyor belt dataset” that you can download to examine. That uploads OK to a project (I just tried).

1 Like