CLIPSeg Text Cut Masks
Feed a phrase into a tiny decoder over frozen CLIP features and cut the matching mask. New words segment with no new heads.
Why Does This Exist?
New mask classes usually need new heads plus full retraining. CLIPSeg freezes CLIP and trains a M decoder that reads phrase vectors via FiLM modulation. Any phrase then cuts a mask, serving open-vocabulary segmentation cheaply.
This page covers text-conditioned decoding only. Proposal-scoring variants are the OpenSeg page.
The one idea you need first.
FiLM scales and shifts visual maps by from text . PhraseCut pairs phrases to masks for training. Loss is binary mask cross entropy per pixel.
Think of It Like This
A stencil cutter reading aloud orders
A cutter hears red scarf and sets blade depth and angle from the words, then cuts that shape from patterned paper. New orders need no new machine.
CLIP paper holds the pattern, FiLM sets the blade, and the decoder cuts. Where it stops: paper patterns stay fixed, while CLIP features shift with input.
How It Actually Works
Encode photo patches with frozen CLIP and phrase with text tower. Modulate decoder layers by FiLM from . Decode to one mask at pixels. Train on PhraseCut plus COCO with dice plus BCE.
In plain words: tunes every layer, supplies detail, and is the phrase cut.
Worked example
Red scarf mask pixels, prediction overlap , union . IoU . BCE plus dice totals per mask early, falling to as FiLM sharpens. New phrase blue tarp cuts at IoU with no retraining.
Watch Out For
Short vague phrases cutting blobs
Word chair alone lights every seat in semantic segmentation scenes. Masks merge instances. Use fuller phrases with color or place to split instances.
The Quick Version
- CLIPSeg modulates frozen CLIP maps with phrase vectors.
- A 2M decoder outputs one mask per phrase.
- PhraseCut supplies phrase-mask training.
- New words cut new masks directly.
- Fuller phrases split instances better.