-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instances.keypoints: index is out of bounds #717
Comments
👋 Hello @so681ste, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:
If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix. If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response. We try to respond to all issues as promptly as possible. Thank you for your patience! |
@so681ste hi there, Thank you for reaching out and providing detailed information about your issue. It looks like you're encountering an To help you effectively, could you please ensure the following:
From the error message, it seems like there might be an issue with the Here’s a quick check:
If the issue persists after these checks, please share the minimal reproducible code example, and we’ll be happy to assist you further. Thank you for your cooperation, and we look forward to resolving this issue together! |
Search before asking
Question
I am trying to train a YOLOv8x-POSE pretrained model with additional foot keypoints using Ultralytics Hub and the recommended google colab code to train. Unfortunately, I keep getting the following error during the training process:
File "/usr/local/lib/python3.10/dist-packages/ultralytics/data/augment.py", line 722, in call
instances.keypoints = np.ascontiguousarray(instances.keypoints[:, self.flip_idx, :])
IndexError: index 18 is out of bounds for axis 1 with size 6
my yaml file includes the 17 standard coco keypoints for the body + 6 foot keypoints. It looks like this:
kpt_shape: [23, 3] # number of keypoints, number of dims (2 for x,y or 3 for x,y,visible)
flip_idx: [0, 2, 1, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11, 14, 13, 16, 15, 18, 17, 20, 19, 22, 21]
and all my created txt files for my labels are organized according to the following scheme
'class-index' 'x' 'y' 'width' 'height' 'px1' 'py1' 'p1-visibility' 'px2' 'py2' 'p2-visibility' ... 'px23' 'py23' 'p23-visibility'
'class-index' 'x' 'y' 'width' 'height' 'px1' 'py1' 'p1-visibility' 'px2' 'py2' 'p2-visibility' ... 'px23' 'py23' 'p23-visibility'
Additional
No response
The text was updated successfully, but these errors were encountered: