AlexeyAB / Yolo_mark

GUI for marking bounded boxes of objects in images for training neural network Yolo v3 and v2
https://github.com/AlexeyAB/darknet
The Unlicense
1.8k stars 680 forks source link

Relative coordinates wrong #166

Closed thhart closed 4 years ago

thhart commented 4 years ago

I checked my dataset and there is an offset for all annotations visible in Yolo_mark. IMHO the relative coordinates are not calculated correct by Yolo_mark. I created a test file with a rectangle. The rectangle starts exactly in the center of the image x-wise. So I expect the coordinate at 0.5. Yolo_mark is setting the coordinate to 0.6161.

PS: When I turn on the coordinate display in the program it is shown correct. However in the final file it is not.

I have attached the files:

class0001

class0001.txt

thhart commented 4 years ago

Sorry, coordinates are centered instead of cornered.