Skip to content

how to get keypoint results from dino-x API #20

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

Open
sh2120170809 opened this issue Dec 13, 2024 · 3 comments
Open

how to get keypoint results from dino-x API #20

sh2120170809 opened this issue Dec 13, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@sh2120170809
Copy link

Using demo.py, I can get detection boxes and masks, but I am trying to get keypoints for person and hand. How can I get keypoint results?

@rentainhe
Copy link
Collaborator

Hello, we will refine our documentation recently and add keypoints demo

@reb1rth-l
Copy link

Hello,I want to get keypoints for person and hands too,it's two months since your last replay, I want to know when will it release?

Hello, we will refine our documentation recently and add keypoints demo

@rentainhe
Copy link
Collaborator

rentainhe commented Feb 17, 2025

Hello, sorry for the late reply, you can get the keypoints annotations by updating your API usage as:

task = DinoxTask(
    image_url=image_url,
    prompts=[TextPrompt(text=TEXT_PROMPT)],
    bbox_threshold=0.25,
    targets=[DetectionTarget.BBox, DetectionTarget.Mask, DetectionTarget.Pose]  # add Pose target
)

and the prediction results will contain the key points predictons in this format (x, y, visibility, _)

  • Notes: it works for the text prompts relative with person, e.g. person, teacher, man.

We will update the visualization in two days.

@rentainhe rentainhe added the enhancement New feature or request label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants