Lucida

Background removal that keeps what matters: glass, camouflage, text, glow and line art.
Try it live (GPU demo) Model weights (MIT) GitHub — code & benchmark Run the web UI locally (Docker)

Benchmark — 191 images, 8 categories (MAE, lower is better)

categorylucida-v5inspyrenetideogram*rmbg-2.0
camouflage0.02730.05820.11790.1405
transparent0.03760.07250.03430.0741
text / logos0.01260.01810.01230.0173
illustration0.00950.02420.02150.0125
complex0.06660.01100.10460.0241
thin0.03500.01660.05210.0180
hair0.00870.00690.01120.0045
* ideogram = fal.ai commercial API, used as the quality reference. Full table & methodology on GitHub.

Examples

camouflage comparison
Camouflage — body paint in magnolia petals: Lucida finds the subject; the best open competitor keeps the whole image.
transparency comparison
Glass — real alpha in the lens/vessel areas, ahead of the commercial reference on this image.
text comparison
Text & logos — lettering with soft drop shadow preserved.
illustration comparison
Illustration — clean line-art edges, ahead of every model measured.

Use it in three lines

from transformers import AutoModelForImageSegmentation
model = AutoModelForImageSegmentation.from_pretrained(
    "egeorcun/lucida", trust_remote_code=True)
MIT license. Fine-tuned from BiRefNet_HR. If Lucida is useful to you, a ⭐ on GitHub helps a lot.