ultralytics / JSON2YOLO

Convert JSON annotations into YOLO format.

Home Page:https://docs.ultralytics.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Converting EXLPose Dataset Annotations to Yolo8-pose

mycodeDev786 opened this issue · comments

I attempted to convert the annotations from the EXLPose dataset to Yolo8-pose format but encountered difficulties and was unable to complete the task

Capture

Hi there! 😊 It sounds like you're diving deep into converting EXLPose dataset annotations for use with YOLO8-pose. While the image link didn’t come through properly, here’s a basic guideline to start the conversion process:

  1. Ensure each annotation includes necessary info in this format: class x_center y_center width height.
  2. For pose data, append joint coordinates and confidence scores: ... joint1_x joint1_y conf1 joint2_x joint2_y conf2 ....
  3. Use relative coordinates (values between 0 and 1) compared to the image size.

Example for a person (class 0) with two pose keypoints:

0 0.5 0.5 0.2 0.4 0.25 0.3 1 0.75 0.7 1

This represents a bounding box centered at (0.5, 0.5) with a width of 0.2 and height of 0.4, and two keypoints with confidence scores.

If you're still facing issues, could you provide more details about the specific difficulties? This will help us offer more targeted advice. Remember, for broader guides or details, checking the Ultralytics Docs might also illuminate the path forward. Keep exploring and experimenting!

I am attaching the coco JSON file. i have converted and i am also attaching the converted yolo text file as well. but when i test the model it does not consider my convert yolo file as a val label.
coco.json