Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a0ae2310
Unverified
Commit
a0ae2310
authored
Apr 25, 2023
by
Younes Belkada
Committed by
GitHub
Apr 25, 2023
Browse files
[`DocTest`] Fix correct checkpoint (#22988)
fix pipeline issue
parent
54272503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/mask_generation.py
src/transformers/pipelines/mask_generation.py
+1
-1
No files found.
src/transformers/pipelines/mask_generation.py
View file @
a0ae2310
...
@@ -70,7 +70,7 @@ class MaskGenerationPipeline(ChunkPipeline):
...
@@ -70,7 +70,7 @@ class MaskGenerationPipeline(ChunkPipeline):
```python
```python
>>> from transformers import pipeline
>>> from transformers import pipeline
>>> generator = pipeline(model="facebook/sam-vit-
h
", task="mask-generation")
>>> generator = pipeline(model="facebook/sam-vit-
base
", task="mask-generation")
>>> outputs = generator(
>>> outputs = generator(
... "http://images.cocodataset.org/val2017/000000039769.jpg",
... "http://images.cocodataset.org/val2017/000000039769.jpg",
... )
... )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment