Git Product home page Git Product logo

Comments (3)

pderrenger avatar pderrenger commented on June 1, 2024

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!

from json2yolo.

mycodeDev786 avatar mycodeDev786 commented on June 1, 2024

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

from json2yolo.

pderrenger avatar pderrenger commented on June 1, 2024

Hello! 😊 Thanks for sharing more details. Make sure when converting COCO JSON to YOLO format, the file structure, and naming align precisely with YOLO requirements. It’s essential that your dataset directory is correctly organized and your .txt label files match the names of their corresponding images, minus the extension.

For example:

  • image1.jpg β€”> image1.txt

Inside your .txt files, double-check the format:

<class_id> <x_center> <y_center> <width> <height> ...

Ensure no extra spaces or lines are present, as these could disrupt the parsing.

If the model isn't detecting your labels correctly during validation, it might be due to either a path issue or format error in the converted files. Verify your validation path in the training script points to the correct directory where your converted YOLO files reside.

Double-checking your dataset directory setup against the guidelines in the Ultralytics Docs can also help ensure everything's in place. If issues persist, providing the exact error message or behavior could help us pinpoint the solution more effectively. Let's keep pushing forward! πŸ’ͺ

from json2yolo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.