-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Supported pipeline tasks update #21268
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
Supported pipeline tasks update #21268
Conversation
|
The documentation is not available anymore as the PR was closed or merged. |
sgugger
left a comment
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.
Thanks for working on that!
| - `"visual-question-answering"` | ||
| - `"document-question-answering"` | ||
| - `"object-detection"` | ||
| - `"depth-estimation"` | ||
| - `"video-classification"` |
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.
Would be goo to have those alphabetically sorted, like the rest.
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.
Thanks, will do!
| - `"visual-question-answering"`: will return a [`VisualQuestionAnsweringPipeline`]. | ||
| - `"document-question-answering"`: will return a [`DocumentQuestionAnsweringPipeline`]. | ||
| - `"object-detection"`: will return a [`ObjectDetectionPipeline`]. | ||
| - `"depth-estimation"`: will return a [`DepthEstimationPipeline`]. | ||
| - `"video-classification"`: will return a [`VideoClassificationPipeline`]. |
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.
Same here.
The docstring of the
transformers.pipelinelisted only 16 supported tasks whileSUPPORTED_TASKScontains 24 tasks. This PR adds the missing tasks to the docstrings so that the generated reference docs accurately list all of the supported tasks here - https://huggingface.co/docs/transformers/main/en/main_classes/pipelines#transformers.pipeline