[mob][photos] Prefer linear scan for clustering within cluster

This commit is contained in:
laurenspriem
2024-05-08 11:13:56 +05:30
parent dd29e55b53
commit ee9eaedd99

View File

@@ -366,7 +366,7 @@ class FaceClusteringService {
'`predictWithinClusterComputer` called with ${input.length} faces and distance threshold $distanceThreshold',
);
try {
if (input.length < 100) {
if (input.length < 10) {
final mergeThreshold = distanceThreshold + 0.06;
_logger.info(
'Running complete clustering on ${input.length} faces with distance threshold $mergeThreshold',