Caches and disk use
videre keeps three caches. All are derived, so all can be deleted, but they cost very different amounts to rebuild.
| Cache | Where | Typical size | Cost to lose |
|---|---|---|---|
| Thumbnails and decodes | ~/.cache/videre/thumbnails/ |
tens of GB | Seconds each, re-decoded on demand |
| Model weights | ~/.cache/huggingface/hub/ |
~960 MB | A download |
| Geocoded place names | inside the database | tiny | One network lookup each |
Embeddings are not a cache. They are hours of computation and are covered under backing up.
Thumbnail cache
Section titled “Thumbnail cache”The big one, and the only one that grows without limit.
~/.cache/videre/thumbnails/ # normally<VIDERE_HOME>/cache/thumbnails/ # when VIDERE_HOME is setFiles are named by content hash:
| File | What |
|---|---|
<hash>_240.jpg |
Grid thumbnail |
<hash>_1200.jpg |
Lightbox size |
<hash>_original.jpg |
Full-resolution decode |
<hash>_face<id>_<size>.jpg |
Cropped face |
The full-resolution copies are what make it large. They exist because
videre faces needs full resolution to place face boxes,
and reusing one is roughly 70x faster than decoding again (~108 ms against
~7.6 s).
Managing it
Section titled “Managing it”du -sh ~/.cache/videre/thumbnails/ # how bigrm -rf ~/.cache/videre/thumbnails/ # safe, regenerates on demandDeleting it is genuinely safe. Every file is derived, and the only cost is re-conversion the next time something needs the image.
There is no size limit, age-based expiry, or eviction. The only automatic
cleanup is videre prune, and it only removes entries for
photos that are no longer in the database. Cache for photos you still own is
never reclaimed.
It is shared between databases
Section titled “It is shared between databases”Keyed by content and stored in one directory, so the same photo in two libraries
is converted once. The consequence is that one library’s prune can delete
another’s entries, since prune can only see its own database.
That is accepted deliberately: a thumbnail costs milliseconds to rebuild, so the same flaw that would be unacceptable for embeddings is unimportant here.
Because the location follows VIDERE_HOME, switching homes means starting from
an empty cache and leaving the old one behind. See
keeping libraries separate.
Warming it deliberately
Section titled “Warming it deliberately”videre watch ~/Photos --heic # decode and cache everything, then Ctrl-Cvidere faces # now reads the cache instead of decodingWorth doing before a long face-detection run on a HEIC-heavy library. Do not run both at once; see long-running jobs.
Model weights
Section titled “Model weights”Downloaded on first use, never at install:
~/.cache/huggingface/hub/ models--google--siglip-base-patch16-224/ ~780 MB models--WePrompt--buffalo_l/ ~180 MBSet HF_HOME to move it. It is the standard Hugging Face location, so other
tools on your machine may share it.
du -sh ~/.cache/huggingface/hub/rm -rf ~/.cache/huggingface/hub/models--google--siglip-base-patch16-224Deleting means the next embed or
search downloads it again. Your embeddings are unaffected:
they live elsewhere and stay queryable.
Selecting a larger model downloads it in addition, not instead. Unused ones sit there until removed by hand.
Geocode cache
Section titled “Geocode cache”A table inside the database, filled by
videre search --location so a repeated place-name query
never repeats the network request.
SELECT query, lat, lon, resolved_at FROM geocode_cache ORDER BY resolved_at DESC;DELETE FROM geocode_cache; -- safe; just re-looks-up next timeTiny, and the only reason to clear it is if a place resolved to somewhere wrong.
Separate from the location_name column that
watch --location fills, which is a reverse lookup done
offline.
Where disk actually goes
Section titled “Where disk actually goes”du -sh ~/.videre/ # database, config, embeddingsdu -sh ~/.videre/embeddings/ # ~130-190 MB per model per 70k photosdu -sh ~/.cache/videre/thumbnails/ # usually the largestdu -sh ~/.cache/huggingface/hub/ # ~960 MB with defaultsvidere stats # per-model embedding sizesOn a large HEIC library the thumbnail cache usually dwarfs everything else, and it is also the safest thing to delete. Work through it in that order:
rm -rfthe thumbnail cache. Free, regenerates.- Remove model weights you no longer use. Free, re-downloads.
videre pruneto drop derived data for photos that are gone.- Delete an unused model’s embeddings directory, if you tried one and moved on.
Nothing in that list touches your photos.