Darknet TXT
Folder structure
classes.yaml
images
train
image1.jpg
image2.jpg
image(N).jpg
valid
image3.jpg
image4.jpg
image(N+1).jpg
test
image5.jpg
image6.jpg
image(N+2).jpg
labels
train
image1.txt
image2.txt
image(N).txt
valid
image3.txt
image4.txt
image(N+1).txt
test
image5.txt
image6.txt
image(N+2).txt
The classes file
classes.yaml
The label file
Each line represents a bounding box.
The bounding box line is composed of the following 5 numbers in order.
Class ID.
(Top left point X) / (Image width).
(Top left point Y) / (Image height).
(Box width) / (Image width).
(Box height) / (Image height).
einstein.jpg
einstein.txt
Last updated