Following Yolo Pose Tutorial- Facing Issue

103 Views Asked by At

I am following this tutorial https://github.com/computervisioneng/pose-detection-keypoints-estimation-yolov8

I am replacing with my own data, but either way I recieve the same error. The issue is when I try to convert my annotated images from CVAT to YOLO using the code provided in the file "CVATtoCocoKeyPoints.py" file.

Traceback (most recent call last):
  File "/Users/ishaangupta/Downloads/main/assderp/jorgensen-v5/pose-detection-keypoints-estimation-yolov8/CVAT_to_cocoKeypoints.py", line 22, in <module>
    bbox = image.getElementsByTagName('box')[0]
IndexError: list index out of range
1

There are 1 best solutions below

4
vgenovpy On BEST ANSWER

Well, it seems that the method, getElementsByTagName(), will look for the tags denominated box, so, the most logical answer with the information you've submitted will be, that your data doesn't poses that tag.

This error should be handled, because probably there are cases where the data submitted doesn't have that property or others...

Can you upload an example of your data?