Separates the subject from its background and returns a transparent cutout of what is left.
The cut follows whatever the model takes to be the subject, so one clear subject cuts well and a crowd or a soft edge does not. The result carries an alpha channel, which is why it appears over a checkerboard in some viewers and over nothing at all in others.
Strip background
Removes the background entirely, leaving a transparent cutout of the main subject.
Examples
Strip background strip_background
1024 × 1024 Source 1024 × 1024 Result
The robot gardener, whose silhouette is clean enough that a reader can see where the cut fell. The result is RGBA: what was behind the subject is transparent rather than white. The plants growing out of the robot's head are cut away with the background, which is the honest thing to show: the matte is decided by what the model reads as subject, not by what a reader would have chosen. The render published here came from hordelib's rembg path, and the horde's production background removal is moving to horde-image-utilities, so this example is regenerated when that lands.