Skip to content
AI360Xpert
Beta

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.

CLIPSeg conditions a small decoder on text to cut one mask
CLIPSeg conditions a small decoder on text to cut one mask

Why Does This Exist?

New mask classes usually need new heads plus full retraining. CLIPSeg freezes CLIP and trains a 22M 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 γ(t),β(t) \gamma(t), \beta(t) from text tt. PhraseCut pairs 340000340000 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 vv with frozen CLIP and phrase tt with text tower. Modulate decoder layers by FiLM from tt. Decode to one mask mm at 352352 pixels. Train on PhraseCut plus COCO with dice plus BCE.

In plain words: tt tunes every layer, vv supplies detail, and mm is the phrase cut.

Worked example

Red scarf mask 1200012000 pixels, prediction overlap 96009600, union 1440014400. IoU 0.6670.667. BCE 0.180.18 plus dice 0.250.25 totals 0.430.43 per mask early, falling to 0.210.21 as FiLM sharpens. New phrase blue tarp cuts at IoU 0.580.58 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.