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-v13inspyrenetideogram*rmbg-2.0
design (print art)0.02540.05870.05180.0478
camouflage0.02270.05820.11790.1405
transparent0.03380.07250.03430.0741
text / logos0.01030.01810.01230.0173
illustration0.00820.02420.02150.0125
complex0.04650.01100.10460.0241
thin0.03210.01660.05210.0211
hair0.00930.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 — anime rider: 5x better than the commercial reference on this image.

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.