What are the save-txt values? #2032
-
What do the values of the result txt stand for?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@philippneugebauer these values are in YOLO label format. See https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data#2-create-labels for details. 2. Create LabelsAfter using a tool like CVAT, makesense.ai or Labelbox to label your images, export your labels to YOLO format, with one
The label file corresponding to the above image contains 2 persons (class |
Beta Was this translation helpful? Give feedback.
-
Hello @glenn-jocher Thank you for the answer. I have a quick question regarding saved texts(using --save-txt) and the confusion matrix. I counted all the rows(bounding boxes) throughout all the text files under /labels. However, the total number of bounding boxes(the total number of rows) is less than the total sum of elements in the confusion matrix(TP + FP + FN). I checked if the confusion matrix has a more strict NMS, but it doesn't look like it. By any chance, do you know why the total number of predictions (bounding box) from the confusion matrix is less than the total number of bounding boxes from txt files(under labels directory) Thank you. |
Beta Was this translation helpful? Give feedback.
@philippneugebauer these values are in YOLO label format. See https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data#2-create-labels for details.
2. Create Labels
After using a tool like CVAT, makesense.ai or Labelbox to label your images, export your labels to YOLO format, with one
*.txt
file per image (if no objects in image, no*.txt
file is required). The*.txt
file specifications are:class x_center y_center width height
format.x_center
andwidth
by image width, andy_center
andheight
by image height.