From: egeorcun <huggingface.co/egeorcun>Newsgroups: alt.freeweights.visionSubject:

lucida

Date: 2026-11-15Commit: 6cbedc9Signed: 2DC28CC7B26A283B ✓

Image segmentation model with 221M parameters. Safetensors weights, 1.77 GB in all. Published by egeorcun under MIT.

221M params1.77GBlucidasafetensorspermissive
FactsParams221MSize1.77 GBFormatssafetensorsTaskimage segmentationLicenseMITFrom sourcepermissive
$ fw get egeorcun/lucida
# manifest sha256 be3e5ebe5c7c… · 1.77 GB · 7 files
$ fw verify ./lucida egeorcun/lucida
From sourceHosted (signed)egeorcun/lucidaLast check: 2026-11-15 02:41 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of BiRefNet_HR.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
1.77 GB
Weights
1.77 GB (safetensors)
Parameters
221M
Formats
safetensors
Task
image segmentation
License
MIT (permissive)
Files
7, each with a sha256
Publisher
egeorcun
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: ZhengPeng7/BiRefNet_HR

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:41 UTCpassed

Model card

From the publisher at commit 6cbedc9. Shown as plain text with links; images open at the publisher.

Lucida — general-purpose background removal with soft-alpha mastery#

Lucida is a BiRefNet-based background-removal / image-matting model fine-tuned to excel where most open models fail: camouflaged objects, transparent materials (glass), text & logos, VFX glows, and illustrations — while staying competitive everywhere else.

On our 203-image, 9-category benchmark (MAE, lower is better) Lucida leads every model we tested — including a commercial reference — in camouflage (0.0270) and illustration (0.0092), beats the commercial reference in text/logo preservation (0.0091 vs 0.0123) and in print-design/sticker art (0.0235 — 2x better than every model measured), and sets our best-ever transparency-in-mixed-objects handling and overall (0.0257) score — ahead of every model we measured, specialist or commercial, on the 203-image average. Full benchmark, gallery and training recipe: https://github.com/egeorcun/lucida — or try the live demo.

Changelog note (2026-07-24): an experimental v13 build was published for a day and then reverted — community testing showed it regressed on real-world layered artwork (poster/collage-style illustrations) that our synthetic design test set does not cover. The current weights are the proven v7. The v13 improvements (reduced background haze on real photos, a transparency milestone) will return in v14 together with the fix.

Files#

FileWhat it isLoad with
model.safetensorslucida-v7 — the published general-purpose release; the snippet above and the benchmark table refer to this.transformers (with Normalize)
lucida-m35-comfy.safetensorslucida-m35 (experimental) — the design-expert branch working model: a checkpoint blend of the v8–v13 background-purity soup with the v18 limb/atmosphere campaign (0.65/0.35), exported folded for ComfyUI: the Normalize preprocessing is baked into the first conv.ComfyUI RemoveBackground node — not the transformers snippet (no Normalize at inference)
lucida-m35 + the design pipeline (ComfyUI)#

Try it in the browser: lucida-design space — the full pipeline (m35 + SAM3 referee + poster policy) on ZeroGPU.

m35 is tuned for print/POD design artwork (posters, tee graphics, stickers) and is meant to run inside a pipeline, not bare: poster policy (training-free decision layer)

  • SAM3 semantic referee (protective subject evidence) + finish package (color

decontamination, edge defringe). The whole chain ships as ComfyUI custom nodes with a ready workflow — install steps: github.com/egeorcun/lucida/tree/design-expert/comfyui.

Place the file in ComfyUI/models/background_removal/. The referee additionally uses facebook/sam3 (gated — accept the license with your own HF account) and CLIP ViT-B/32, both auto-downloaded on first run.

Verified against the 203-image benchmark for zero category regression vs the published v7 before adoption; the pipeline itself is judged by eye against a commercial reference on real design artwork (duel catalog in the branch docs). Outside the design domain the poster policy is not recommended — use model.safetensors bare instead.

Usage#

import torch
from PIL import Image
from torchvision import transforms
from transformers import AutoModelForImageSegmentation

model = AutoModelForImageSegmentation.from_pretrained(
    "egeorcun/lucida", trust_remote_code=True, dtype=torch.float32)
model.eval()

t = transforms.Compose([
    transforms.Resize((1024, 1024)),
    transforms.ToTensor(),
    transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]),
])
img = Image.open("input.jpg").convert("RGB")
with torch.no_grad():
    preds = model(t(img).unsqueeze(0))[-1].sigmoid()
alpha = transforms.functional.resize(preds[0], img.size[::-1]).squeeze(0)
rgba = img.copy()
rgba.putalpha(Image.fromarray((alpha.numpy() * 255).astype("uint8")))
rgba.save("output.png")

For color decontamination (removing background color fringing) and the full pipeline (CLI, FastAPI service, Docker web UI), see the GitHub repository.

Base model & attribution#

  • Architecture and initial weights: ZhengPeng7/BiRefNet_HR (MIT). Lucida is a fine-tune; the original copyright notice is preserved.
  • Illustration data includes ToonOut (CC-BY 4.0).
  • Some training datasets (e.g. P3M-10k, COD10K, DIS5K) are distributed for research purposes; see the GitHub README for the full dataset/license table and evaluate suitability for your use case.

License#

MIT (weights and code).

Files

7 files · 1.77 GBWeights 1.77 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 7 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
BiRefNet_config.py298 Be7b8c2a74f6cea6a59553d517f71d47f2c1d90e670a13416af17c25fe2f3dc52
README.md5.20 KBa7338f6639868c1eb30f97e500fdee44ef6762809bc076582c208d3e45986ae7
birefnet.py92.1 KB2a45b4e0ece72d7c4212bca1a988e7d7e52bfe9f98ec59c58b8809c8a8b7a831
config.json367 B274c3949a052b9da73885c8df33e6cf8605ea4280668e194e4a249cbcda06ec2
lucida-m35-comfy.safetensors883 MB6750664140b2f32448cfe5f63217e7e0c0b33ca6caf8c4b2c3da280770f0fa34
model.safetensors885 MB2f1aa6913426537d4b93dd5f7138ae5c6664e99abda98c95f3d5b9101283e7d5
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
6cbedc9722 pinned now2026-11-15 02:41 UTC7 files · 1.77 GB

Use it

$ fw get egeorcun/lucida
# manifest sha256 be3e5ebe5c7c… · 1.77 GB · 7 files
$ fw verify ./lucida egeorcun/lucida
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/egeorcun/lucida.json --dir ./lucida $ python3 fw.py verify ./lucida ./egeorcun__lucida.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download egeorcun/lucida --revision 6cbedc9722652dc9a3df91dd871f0c4f3334e922 --local-dir ./lucida

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
a7338f6639868c1eb30f97e500fdee44ef6762809bc076582c208d3e45986ae7
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: egeorcun <huggingface.co/egeorcun>Newsgroups: alt.freeweights.visionSubject: lucidaDate: 2026-11-15Commit: 6cbedc9Signed: 2DC28CC7B26A283B ✓
Upstream
egeorcun/lucida
Pinned commit
6cbedc9722652dc9a3df91dd871f0c4f3334e922
Manifest
lucida.json · .minisig
Manifest sha256
be3e5ebe5c7c99518d3c69f008788faa5e579e4f1228ba97483300ee8b76b07c
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:41 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/egeorcun/lucida.json $ curl -O https://freeweights.allternit.com/manifests/egeorcun/lucida.json.minisig $ minisign -Vm lucida.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

ZhengPeng7/BiRefNet_HR · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download egeorcun/lucida
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. lucida.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX