ultralytics / JSON2YOLO

Convert JSON annotations into YOLO format.

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question on creating and processing keypoints for Yolov8 –pose

palmcorp opened this issue · comments

The process seems to be 1) Run CVAT and define keypoints for image set. 2) run Json2Yolo to convert to a dataset that can be used by yolov8-pose.3) run yolov8-pose. Is this correct?
There are two conversions in JSON2YOLO-master: general_json2yolo.py and labelbox_json2yolo.py. How should these be utilized?
As data export from CVAT of COCO 1.0 keypoints we have :
Annotations
person_keypoints_default.json
Images
Frame0000.PNG

General_json2yolo is looking in ‘annotations’ where it will find person_keypoints_default.json.
Labelbox_jon2yolo looks into "export-2021-06-29T15_25_41.934Z.json"
What should be in ("export-2021-06-29T15_25_41.934Z.json"? Pointing this to the same json as used in general_json2yolo results in new labels, although with just one class.

Hello,

You're on the right track with your process for creating and processing keypoints for YOLOv8-pose. Here's a concise breakdown:

  1. Run CVAT: Define keypoints for your image set.
  2. Convert Annotations: Use general_json2yolo.py to convert your CVAT-exported COCO keypoints JSON to the YOLO format.
  3. Train with YOLOv8-pose: Use the converted dataset to train your model.

Regarding the two scripts in JSON2YOLO-master:

  • general_json2yolo.py: This script is designed to handle general COCO-format JSON files, like your person_keypoints_default.json.
  • labelbox_json2yolo.py: This script is specific to Labelbox JSON exports and expects a different structure, such as "export-2021-06-29T15_25_41.934Z.json".

Since you are using CVAT and have a COCO keypoints JSON, you should use general_json2yolo.py. Ensure your JSON file is correctly formatted and located in the annotations directory.

For further details on dataset formatting and usage, you can refer to our documentation.

If you encounter any issues or need further assistance, feel free to ask! 😊

@palmcorp hi Paul,

Glad to hear that the information on general_json2yolo.py vs. labelbox_json2yolo.py was helpful! If you have any more questions or need further assistance as you proceed, don't hesitate to reach out. Happy training!

Hi Paul,

Switching to YOLOv10 can indeed offer improvements, especially if you're facing configuration challenges with older versions. YOLOv10 brings enhanced features and optimizations that might simplify your setup and potentially yield better results for pose estimation tasks. It's worth considering the upgrade, especially to stay current with the latest advancements and support.

Hi Paul,

Great, feel free to reach out anytime you need assistance. We're here to help!