Skip to content

Commit 226c4b5

Browse files
pcuencamerveenoyan
andauthored
nits: mask-generation task (#461)
Co-authored-by: Merve Noyan <[email protected]>
1 parent e67d451 commit 226c4b5

File tree

1 file changed

+1
-2
lines changed
  • packages/tasks/src/tasks/mask-generation

1 file changed

+1
-2
lines changed

packages/tasks/src/tasks/mask-generation/about.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ When filtering for an image, the generated masks might serve as an initial filte
66

77
### Masked Image Modelling
88

9-
Generating masks can be done to facilitate learning, especially in semi- or unsupervised learning. For example, the [BEiT](https://huggingface.co/docs/transformers/model_doc/beit) use image masked patches in the pre-training.
9+
Generating masks can be done to facilitate learning, especially in semi- or unsupervised learning. For example, the [BEiT model](https://huggingface.co/docs/transformers/model_doc/beit) uses image-masked patches in the pre-training.
1010

1111
### Human-in-the-loop
1212

@@ -25,7 +25,6 @@ from transformers import pipeline
2525
generator = pipeline("mask-generation", device = 0, points_per_batch = 256)
2626
image_url = "https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png"
2727
outputs = generator(image_url, points_per_batch = 256)
28-
2928
```
3029

3130
## Useful Resources

0 commit comments

Comments
 (0)