Skip to content

Commit

Permalink
nits: mask-generation task (#461)
Browse files Browse the repository at this point in the history
Co-authored-by: Merve Noyan <merveenoyan@gmail.com>
  • Loading branch information
pcuenca and merveenoyan authored Jan 26, 2024
1 parent e67d451 commit 226c4b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tasks/src/tasks/mask-generation/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ When filtering for an image, the generated masks might serve as an initial filte

### Masked Image Modelling

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.
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.

### Human-in-the-loop

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

```

## Useful Resources
Expand Down

0 comments on commit 226c4b5

Please sign in to comment.