mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2026-07-15 06:27:20 +02:00
8d727eba3e
`find_cluster_centroids()` iterates `k` from 1..`max_k` unconditionally. If `len(embeddings) < max_k`, `KMeans(n_clusters=k)` will raise `ValueError` when `k` exceeds the number of samples. This is an unhandled crash path on small datasets. Affected files: cluster_analysis.py Signed-off-by: Nguyen Van Nam <nam.nv205106@gmail.com>