Skip to content

Commit

Permalink
[docs] Add MaskGenerationPipeline in docs (huggingface#27063)
Browse files Browse the repository at this point in the history
* add `MaskGenerationPipeline` in docs

* Update __init__.py

* fix repo consistency and clarify docstring

* add on check docstirngs

* actually we do have a tf sam

* oops
  • Loading branch information
younesbelkada authored Oct 25, 2023
1 parent ba073ea commit c34c50c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/en/main_classes/pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,12 @@ Pipelines available for multimodal tasks include the following.
- __call__
- all

### MaskGenerationPipeline

[[autodoc]] MaskGenerationPipeline
- __call__
- all

### VisualQuestionAnsweringPipeline

[[autodoc]] VisualQuestionAnsweringPipeline
Expand Down
2 changes: 2 additions & 0 deletions src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@
"ImageToImagePipeline",
"ImageToTextPipeline",
"JsonPipelineDataFormat",
"MaskGenerationPipeline",
"NerPipeline",
"ObjectDetectionPipeline",
"PipedPipelineDataFormat",
Expand Down Expand Up @@ -4814,6 +4815,7 @@
ImageToImagePipeline,
ImageToTextPipeline,
JsonPipelineDataFormat,
MaskGenerationPipeline,
NerPipeline,
ObjectDetectionPipeline,
PipedPipelineDataFormat,
Expand Down
1 change: 1 addition & 0 deletions utils/check_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@
"M2M100Config",
"M2M100Tokenizer",
"MarkupLMProcessor",
"MaskGenerationPipeline",
"MBart50TokenizerFast",
"MBartConfig",
"MCTCTFeatureExtractor",
Expand Down

0 comments on commit c34c50c

Please sign in to comment.