drone-net icon indicating copy to clipboard operation
drone-net copied to clipboard

Image labels are wrong

Open DogukanAltay opened this issue 6 years ago • 5 comments

You should specify the labeling format. If it is <class_id> , the bounding boxes are completely broken.

DogukanAltay avatar Jan 30 '19 12:01 DogukanAltay

The class ID is the first digit of each line in the label .txt files. In YOLO, the IDs start from 0 and increments by one for each new class. Since the labels are specifically for one class only (drone), all the labels have ID of 0.

chuanenlin avatar Feb 01 '19 03:02 chuanenlin

Could you explain how is stored the bounding box information in the label files?. Because if you draw the bounding box in the image, it is completely broken.

Thanks

JSGFJSG avatar Apr 02 '19 14:04 JSGFJSG

@JSGFJSG The labels are in the format: [class_id] [x_center] [y_center] [x_width] [y_width] which is the standard format for YOLO.

chuanenlin avatar Apr 02 '19 14:04 chuanenlin

@chuanenlin Why don't you use the bounding box coordinates normalized by image width and height as is indicated in https://github.com/AlexeyAB/darknet#how-to-train-to-detect-your-custom-objects?. Thanks in advance.

JSGFJSG avatar Apr 02 '19 15:04 JSGFJSG

@JSGFJSG I haven't normalized the coordinates because this is the correct labeling format for the Linux (original) version of YOLO. However, I think it should be relatively straightforward to do normalization since you can easily find the image width and height of all raw images.

chuanenlin avatar Apr 02 '19 15:04 chuanenlin