Skip to content

CLI

The installed command is:

powershell
uv run fibo-rmbg --help

Core arguments

ArgumentPurpose
--inputSource image path
--outputRGBA output path
--mask-outputOptional grayscale mask path
--deviceauto, cuda, or cpu
--dtypeauto, bfloat16, float16, or float32
--num-inference-stepsDenoising steps
--guidance-scaleGuidance scale
--max-sideLongest-edge resize cap before inference
--cpu-offloadReduce GPU pressure, but not reliable in this tested Windows setup
--vae-dtypeOptional VAE dtype override
--mask-stylesoft, balanced, or hard
--alpha-thresholdOptional post-resize alpha threshold

Practical guidance

  • soft: smoothest edges, but most likely to blur or halo
  • balanced: best default tradeoff from the saved experiment sweep
  • hard: useful for comparison, but it can staircase curved edges

Typical commands

Fast baseline:

powershell
uv run fibo-rmbg --input .\example\grok-image-square.png --max-side 256 --num-inference-steps 1 --dtype bfloat16

Sharper fallback:

powershell
uv run fibo-rmbg --input .\example\grok-image-square.png --max-side 256 --num-inference-steps 4 --dtype bfloat16 --mask-style balanced

Repo code is MIT. Upstream BRIA model access remains gated and subject to BRIA terms.