Skip to content
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

Result of model.predict has type ClassificationModel, no keypoints. #345

Open
LinasKo opened this issue Dec 2, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@LinasKo
Copy link
Contributor

LinasKo commented Dec 2, 2024

Tested on several projects:

pip install supervision roboflow
version = rf.workspace("roboflow-jvuqo").project("football-field-detection-f07vi").version(8)
version.download("yolov8")
kp_model = version.model
assert kp_model is not None

first_image_path = os.listdir(f"{dataset.location}/train/images")[0]
first_image_path = f"{dataset.location}/train/images/{first_image_path}"

result = kp_model.predict(first_image_path).json()

# Fails
keypoints = sv.KeyPoints.from_inference(result)
@LinasKo LinasKo added the bug Something isn't working label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant