-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Coco-wholebody conversion not working #109
Comments
@Gnoot01 thanks for reaching out. Please ensure you're using the latest version of the conversion script. If the issue persists, you might need to modify the script to handle unannotated keypoints correctly. Check if the script accounts for missing keypoints by setting them to |
Thanks for your reply. is my dataset considered voc? and also just curious, how does the yolo in the .txt file display key points that are not detected or annotated in the .json file? |
Your dataset isn't VOC; it's COCO format with additional keypoints. In the YOLO format, undetected keypoints should be represented as |
Hi, the conversion script I'm using is the general_json2yolo.py from your JSON2YOLO library, does it mean this script doesn't account for COCO files with more than 17 keypoints yet? |
@pderrenger @glenn-jocher may I ask if this general_json2yolo.py from your JSON2YOLO library, is it applicable to pose as well? As the converter code seems to be missing "keypoints" from the json file and uses only "segmentation"
|
The |
Ah I see, that makes sense. Might be good to specify that, unless I did not see it haha. Yup, got it working and I intend to share the code :) 1 last question - does reading from COCO .json file work this way for YoloV11? or is the .txt files the only way? If this works, is this path relative to ./data?
|
YOLOv5 primarily uses |
YoloV5? what about v11? As well as the source mentions it's applicable for v8? |
YOLOv8 supports COCO |
I'm using Yolov11 |
Thanks for reaching out. YOLOv11 isn't officially released by Ultralytics. If you meant YOLOv8, please ensure you're using the latest version and refer to the documentation for guidance. |
Thanks, my code is here |
Thank you for sharing your code. Please ensure you're using the latest version of the package, and let us know if the issue persists. |
Hi, I'm using the coco-wholebody 133 keypoints images + annotations (in coco format) from here, however it seems using the general_json2yolo.py doesn't leave the 0s (unannotated / undetected points) as it is in the .json, when converted to the .txt?
Eg. using this val_json file, this image, i get the following .txt file only has 137 kp, despite the format requiring to be 5 (class_id + bbox) + (133x3) = 404 kp, and if kp are not visible, they should be 0 0 0
The example is using "image_id" : 785 or 000000000785
json

txt
Please assist, thanks
The text was updated successfully, but these errors were encountered: