Problem entering with YOLO TXT label


I am having problems updating YOLO TXT labels.

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

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