π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tiny performance improvement
laurenspriemea439c939fb8
diff --git a/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart b/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dartindex 8742970e33..50888b7ac9 100644--- a/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart+++ b/mobile/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart@@ -271,7 +271,7 @@ class ClusterFeedbackService<T> {required String personClusterID,}) async {final faceIDs = await mlDataDB.getFaceIDsForCluster(personClusterID);- final ignoredClusters = await mlDataDB.getPersonIgnoredClusters(p.remoteID);+if (faceIDs.length < 2 * kMinimumClusterSizeSearchResult) {final fileIDs = faceIDs.map(getFileIdFromFaceId<int>).toSet();if (fileIDs.length < kMinimumClusterSizeSearchResult) {@@ -285,6 +285,7 @@ class ClusterFeedbackService<T> {_logger.info('${kDebugMode ? p.data.name : "private"} has existing clusterID $personClusterID, checking if we can automatically merge more',);+ final ignoredClusters = await mlDataDB.getPersonIgnoredClusters(p.remoteID);// Get and update the cluster summary to get the avg (centroid) and countfinal EnteWatch watch = EnteWatch("ClusterFeedbackService")..start();