Pose Estimation Dataset Issues

Hi,
I used roboflow to create a dataset for horse pose estimation but I have an issue when I try to use it.
I Downloaded the dataset with the Yolov8 format for a Yolov8 model but when I run it I get this error message :

labels[“keypoints”] = torch.from_numpy(instances.keypoints)
TypeError: expected np.ndarray (got NoneType)

(This is only the last few lines of the long error message)
The code is only 3 lines :

from ultralytics import YOLO

model = YOLO(“yolov8n-pose.pt”)
results = model.train(data=“horse_posev8.yaml”, epochs=100, imgsz=640)

I hope anyone can explain me why it doesn’t work and how to fix it !
Thanks in advance !

Hi! Can you check the docs and confirm you’re using the right version of ultralytics?

Actually, can you verify if training a model within roboflow works on that dataset? That should indicate whether or not it’s a dataset / roboflow error

I was on the wrong version, didn’t think the latest version couldn’t handle previous features,
Thanks !

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.