From ee9eaedd9918bb3a192de1ab5bbf8b2237ae3d08 Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Wed, 8 May 2024 11:13:56 +0530 Subject: [PATCH] [mob][photos] Prefer linear scan for clustering within cluster --- .../face_ml/face_clustering/face_clustering_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart b/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart index 0e19ab4597..3219fe7f9d 100644 --- a/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart +++ b/mobile/lib/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart @@ -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',