Skip to content

What are the save-txt values? #2032

Discussion options

You must be logged in to vote

@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:

  • One row per object
  • Each row is class x_center y_center width height format.
  • Box coordinates must be in normalized xywh format (from 0 - 1). If your boxes are in pixels, divide x_center and width by image width, and y_center and height by image height.
  • Class numbers are zero-indexed (start from 0).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jaideep11061982
Comment options

@glenn-jocher
Comment options

Answer selected by philippneugebauer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants