Maintaining Label Order in YOLOv8 Export from Roboflow

Hi everyone,

I’m facing an issue with Roboflow when exporting my datasets in the YOLOv8 format. The labels in the exported ZIP file do not appear in the order I originally specified during class creation. I want my classes/labels to remain in the exact order I entered them, even if I don’t use all the classes in each dataset.

Here’s the order of my labels:

  1. Finger_Blue
  2. Finger_Red
  3. Finger_Yellow
  4. HB_Two
  5. HB_Three
  6. RB_Two
  7. RB_Three
  8. Mounting_Station
  9. No_Part
  10. Assy_0
  11. Assy_25
  12. Assy_33,3
  13. Assy_50
  14. Assy_66,7
  15. Assy_75
  16. Assy_100

For example, even if I don’t use Finger_Blue in a dataset and only include Finger_Yellow, I still want Finger_Blue to correspond to class 0 and Finger_Yellow to class 2 in the export.

Is there a solution to keep the label order intact regardless of which classes are used in the dataset? Any advice would be greatly appreciated!

Thanks in advance!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.