withoutBG Focus (legacy)

Use withoutBG Open Weights v4 instead. Focus is an earlier generation of the withoutBG models. The files stay here for older code that still downloads them. For new work, use withoutbg/withoutbg-openweights-onnx: a routed pipeline (withoutBG matting + BiRefNet), native resolution up to 4096 px, and the interactive Smart brush. On withoutBG Bench v0 (60 real photos with ground-truth mattes) it scores MAE 0.0292 against 0.0426 for BiRefNet General, and it runs on CPU with ONNX Runtime.

pip install -U withoutbg
from withoutbg import WithoutBG

model = WithoutBG.open_weights()  # downloads the v4 bundle on first use
model.remove_background("photo.jpg").save("result.png")

Try it in the browser: withoutbg/withoutbg Space. Current withoutbg releases load the v4 bundle, not the files in this repository.

Files

File Size
isnet.onnx 177 MB
depth_anything_v2_vits_slim.onnx 99 MB
focus_matting_1.0.0.onnx 26.8 MB
focus_refiner_1.0.0.onnx 14.5 MB

ONNX models for ONNX Runtime. The depth model is Depth Anything V2 ViT-S. To keep using a specific version of these files, pin them to a commit of this repository.

Links

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Space using withoutbg/focus 1