-
Notifications
You must be signed in to change notification settings - Fork 267
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
Add keypoint-detection task to Hub #870
Conversation
also cc @NielsRogge |
@@ -131,6 +131,7 @@ export const TASKS_MODEL_LIBRARIES: Record<PipelineType, ModelLibraryKey[]> = { | |||
"image-to-image": ["diffusers", "transformers", "transformers.js"], | |||
"image-to-text": ["transformers", "transformers.js"], | |||
"image-to-video": ["diffusers"], | |||
"keypoint-detection": ["transformers"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this mean? Cause there's no keypoint detection pipeline in Transformers yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we currently have SuperPoint and will soon have ViTPose
I think we should tag those models then before the PR is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice (I opened https://github.com/huggingface-internal/moon-landing/issues/11015 internally )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have opened PRs to 30-40 models and some are merged
Yes, I see 4 models now 👍
packages/tasks/src/pipelines.ts
Outdated
"keypoint-detection": { | ||
name: "Keypoint Detection", | ||
modality: "cv", | ||
color: "red", | ||
hideInDatasets: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be a subtask of object-detection
instead? There's already a face-detection
subtask, for example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @merveenoyan, keypoint-detection can be seen as a task at the same level of object detection, it's not a subtask
@@ -131,6 +131,7 @@ export const TASKS_MODEL_LIBRARIES: Record<PipelineType, ModelLibraryKey[]> = { | |||
"image-to-image": ["diffusers", "transformers", "transformers.js"], | |||
"image-to-text": ["transformers", "transformers.js"], | |||
"image-to-video": ["diffusers"], | |||
"keypoint-detection": ["transformers"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we currently have SuperPoint and will soon have ViTPose
I think we should tag those models then before the PR is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking nice!
name: "Keypoint Detection", | ||
modality: "cv", | ||
color: "red", | ||
hideInDatasets: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any datasets for this on the Hub?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually there seems to be a lot, opening PRs now
https://huggingface.co/datasets?sort=trending&search=mediapipe
https://huggingface.co/datasets?sort=trending&search=keypoint
https://huggingface.co/datasets?sort=trending&search=pose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just set to false
@@ -131,6 +131,7 @@ export const TASKS_MODEL_LIBRARIES: Record<PipelineType, ModelLibraryKey[]> = { | |||
"image-to-image": ["diffusers", "transformers", "transformers.js"], | |||
"image-to-text": ["transformers", "transformers.js"], | |||
"image-to-video": ["diffusers"], | |||
"keypoint-detection": ["transformers"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice (I opened https://github.com/huggingface-internal/moon-landing/issues/11015 internally )
lol I opened too many PRs Hub thinks I'm spamming |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the contributions from #873
Co-authored-by: Merve Noyan <mervenoyan@Merve-MacBook-Pro.local> Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
This reverts commit 678eba8.
I have opened PR to keypoint detection because we already have around 30 keypoint detection models on Hub (currently opening PRs to change pipeline tag), one model in transformers, and this doesn't fall under any other task.