perf: eliminate O(K²) dedup allocs, vectorize kmedoids cost, batch tracker writes
- _dedup_embeddings: pre-allocated (Q,D) buffer replaces vstack-on-keep, dropping O(K²×D) copy overhead down to O(K×D) fill work - _kmedoids: swap cost sum replaced with numpy fancy-index reduction, ~20-50x faster per swap evaluation - _reconcile_frigate_mappings: O(L) load/save pairs collapsed to one batch write via record_frigate_files_batch
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "winnow"
|
||||
version = "0.4.6"
|
||||
version = "0.4.7"
|
||||
description = "Selects diverse, high-quality photos from Immich as training data for Frigate face recognition and object classification."
|
||||
license = "AGPL-3.0-or-later"
|
||||
requires-python = ">=3.13"
|
||||
|
||||
Reference in New Issue
Block a user