Model downloads (Hugging Face Hub)
Lens's local backends and curator's converters fetch weights from the Hugging Face Hub on first use and cache them under HF_HOME. Mount that cache into containers so the download happens only once.
Used by
Official guides
- Download files from the Hub (opens in new tab)
- Manage the cache (opens in new tab)
- User access tokens (opens in new tab): for gated models
- WD14 tagger v3 (EVA02 large) (opens in new tab)
- Recognize Anything (RAM++) (opens in new tab)
- RAM++ weights (opens in new tab)
- Florence-2 base (opens in new tab)
- BLIP-2 OPT 2.7b (opens in new tab)
Minimal setup
- Pick a cache location and set
HF_HOME(default~/.cache/huggingface). In containers, mount it as a volume so each model downloads once. - Install the extras for the backends you want:
argus-lens[wd14]: WD14 on CPU onnxruntime, no torch.argus-lens[torch]: RAM++, Florence-2, BLIP-2.argus-lens[local]: all of them.
- For a gated model, create a read token and export
HF_TOKEN. The Hub client picks it up from the environment.
Lens loads florence-community/Florence-2-base by default, which needs no
remote code. The original microsoft/Florence-2-base runs only with
HF_TRUST_REMOTE_CODE=1. See
trust_remote_code and Florence-2 (opens in new tab)
before turning that on.