HubCloneHubClone
Tasks

Image Segmentation

Image segmentation divides an image into regions and labels every pixel.

Inputs

Input
A photo of a red fox in fresh snow

Image Segmentation Model

Output

Output
Masks: fox, snow, sky

About Image Segmentation

Image segmentation divides an image into regions and labels every pixel. Browse image segmentation models on HubClone to compare checkpoints, or open a Space to try one in the browser.

Use Cases

Medical imaging

Outline organs or lesions in scans.

Photo editing

Cut a subject out of its background.

Inference

The Transformers pipeline API runs image segmentation models in a few lines. Replace <model-id> with any model listed on this page.

from transformers import pipeline

pipe = pipeline("image-segmentation", 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

  • Image Segmentation task guide
  • Pipelines reference

Notebooks

  • Fine-tuning a image segmentation model