Mask Generation
Mask generation produces object masks for an image, optionally guided by points or boxes.
Inputs
Input
Mask Generation Model
Output
Output
About Mask Generation
Mask generation produces object masks for an image, optionally guided by points or boxes. Browse mask generation models on HubClone to compare checkpoints, or open a Space to try one in the browser.
Use Cases
Interactive selection
Click once to select an object.
Dataset labeling
Speed up segmentation annotation.
Inference
The Transformers pipeline API runs mask generation models in a few lines. Replace <model-id> with any model listed on this page.
from transformers import pipeline
pipe = pipeline("mask-generation", model="<model-id>")
pipe("fox.png")Useful Resources
Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.
Documentation
- Mask Generation task guide
- Pipelines reference
Notebooks
- Fine-tuning a mask generation model