Issue with Bounding Boxes Not Maintained After Annotation in Roboflow for YOLO8

Hello everyone,

I’m encountering an issue with my dataset annotations in Roboflow, which is causing problems when exporting the data for use with YOLO8.

After annotating my images and creating a new data version (with or without image preprocessing), I noticed that the bounding boxes on the cars are not maintained. When I review the annotated images on Roboflow, the bounding boxes appear correctly (as shown on the right side of the attached image). However, after exporting the dataset in YOLO8 format and reviewing the images, the bounding boxes are either misplaced or missing entirely (as shown on the left side of the attached image).

Here’s a summary of my workflow:

  1. Annotate images in Roboflow.
  2. Create a new data version (with or without image preprocessing).
  3. Export the dataset in YOLO8 format.
  4. Download the zip file to my computer.
  5. Review the exported images and observe the bounding box discrepancies.

Has anyone else encountered a similar issue or have any insights on why this might be happening? Any advice or solutions would be greatly appreciated!

Thank you!


  • Project Type: Object detection
  • Operating System & Browser: Macbook / Google Chrome
  • Project ID : vehicles-yqe0x

I have also gone through the discussion on the misaligned bounding boxes after augmentation (Misaligned bounding boxes after augmentation - #13 by leo) but nothing seems to work for me. At the end of that thread, it looks like it just worked for them, but I can’t seem to replicate the success.

I saw from this thread that there was an export bug for yolo8 in January, (Inquiry Regarding Incorrect Bounding Box Coordinates Export in RoBoFlow (YOLOv8) - #7 by Emily) Profile - Emily - Roboflow

Hey @Aina

Could you share how you are visualizing these discrepancies? We aren’t aware of any current issues with exports.

Information on the workspace and project (or Universe link if your project is public) and the export format you’re using would also be helpful in debugging this issue.

image

After investigating this issue, I found that the problem lies with the annotations themselves. YOLOv8 (Standard YOLOv8 Dataset) expects annotations to be in the form of bounding boxes (rectangles). However, the annotations I used included a mix of rectangles and polygons. This discrepancy likely causes the bounding boxes to be misplaced or missing in the exported dataset for YOLOv8.

To confirm the idea, I converted the polygons to bounding boxes to standardize the annotation.

Another option would be to export as YOLOv8-oriented bounding boxes dataset.

Suggestion:

  • When exporting a dataset into YOLOv8 that was annotated with something other than rectangles, I suggest showing a warning to the user, as this would be a helpful feature to have.

Thank you, solved it

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