Spaces:
Running on Zero
Running on Zero
Commit History
Yesterday
-
Text-guided removal: auto-generate the mask with SAM 3
Verified signatureAdds text-guided removal: SAM 3 generates the mask from the instruction, so you can remove an object without painting it. **UI.** The instruction box now lives in the Mask panel, with an "Auto-generate mask from instruction" button under it. The mask lands on the canvas, where it can be touched up with the brush or eraser. Running with nothing painted finds the mask automatically, in the same GPU call as the removal, and falls back to the instruction alone if SAM 3 finds nothing. Painted and example masks work as before. **How the mask is found** (`text_mask.py`): the instruction is split into short object names ("the wooden ladder, the white stool and the potted plant" gives three). Position words such as "on the right" pick a single instance, a long description that finds nothing is retried with just its noun, and holes are filled so the outline goes around the object. On the card's 18 examples, 17 give a sensible mask. **API.** `remove` gains `auto_mask` (off by default, so exist…83ed814 -
Allow object removal with or without a mask outline. Running
Empty mask inputs were treated as required images, so chained workflow runs dropped the instruction and failed. Treat missing masks as optional and keep prompt-only removal working. Co-authored-by: Cursor <cursoragent@cursor.com>f73508d -
Initial Space: P-Q-Image-2.1-Remove-Object studio
Verified signature6506c82 -
initial commit
Verified signature9e224e3