A 17-track smoke test on a 32-core host scanned at 2.15 tracks/s with
2 workers (~1 CPU-second per track). The nice-19 reference run was
throttled, so its wall time was not representative of dedicated
hardware. 429k tracks are ~120 core-hours (~6 h at 20 workers); reading
18 TB dominates, for ~12-30 h end to end.
- raise MAP_SIZE from 2 GiB to 16 GiB; LMDB reserves address space, not
RAM, and the file grows on demand. The old cap would be exhausted
around ~100k 1,280-d tracks
- analyze the library in 4,096-track batches and upsert after each batch
so peak memory stays bounded instead of holding every embedding in
memory; each batch is its own transaction, so interrupted scans keep
completed batches
- add a multi-batch scan integration test
- document large-library sizing (~4 CPU-seconds/track; ~1.5-2 days at 20
threads for 429k tracks) in the README
- switch from msd-musicnn-1 (200-d, 50 tags, 187-frame patches) to
Essentia's discogs-effnet-bsdynamic-1 (1,280-d embeddings, 400 Discogs
styles, 128-frame patches)
- export script now downloads Essentia's official dynamic-batch ONNX and
verifies the schema, tensor shapes, and a smoke inference; no
TensorFlow or tf2onnx required
- cluster names strip the ParentGenre--- prefix and rank styles with
sqrt(mean) * (mean / (global + 0.05)) so dominant sub-styles beat
ultra-rare predictions; playlists dedupe normalized (artist, title)
keeping the edition nearest the cluster centroid
- add scan --jobs/-j to cap rayon worker threads
- update tests, README, and benchmarks (48 tests; 2,411-track re-embed)
- center_and_normalize() removes the ReLU positive-orthant baseline before
L2 normalization; used by the arroy rebuild and k-means so similar,
adventure and cluster share one zero-mean hypersphere
- persist the library mean as meta.center_mean; nearest_by_vector centers
raw queries with it; empty rebuilds clear it
- similar dedupes candidates by normalized (artist, title) with the seed
key pre-inserted, removing duplicate rips and deluxe editions
- new rebuild-index subcommand re-indexes stored embeddings in ~60 ms
for 2.4k tracks without re-scanning audio
- tests: zero-mean/unit-norm centering, angular separation, empty rebuild
mean clearing, duplicate-edition filtering