π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Use complete clustering for breaking up clusters
laurenspriem7a5e1263e03e
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 8c38ac2764..fe64218ec8 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@@ -13,8 +13,6 @@ import "package:photos/generated/protos/ente/common/vector.pb.dart";import "package:photos/models/file/file.dart";import 'package:photos/services/machine_learning/face_ml/face_clustering/cosine_distance.dart';import "package:photos/services/machine_learning/face_ml/face_clustering/face_clustering_service.dart";-import "package:photos/services/machine_learning/face_ml/face_clustering/face_info_for_clustering.dart";-import "package:photos/services/machine_learning/face_ml/face_filtering/face_filtering_constants.dart";import "package:photos/services/machine_learning/face_ml/face_ml_result.dart";import "package:photos/services/machine_learning/face_ml/person/person_service.dart";import "package:photos/services/search_service.dart";@@ -234,27 +232,14 @@ class ClusterFeedbackService {maxClusterID++;}} else {- final clusteringInput = embeddings.map((key, value) {- return MapEntry(- key,- FaceInfoForClustering(- faceID: key,- embeddingBytes: value,- faceScore: kMinHighQualityFaceScore + 0.01,- blurValue: kLapacianDefault,- ),- );- }).values.toSet();-final faceIdToCluster =- await FaceClusteringService.instance.predictLinear(- clusteringInput,+ await FaceClusteringService.instance.predictComplete(+ embeddings,fileIDToCreationTime: fileIDToCreationTime,- distanceThreshold: 0.23,- useDynamicThreshold: false,+ distanceThreshold: 0.30,);- if (faceIdToCluster == null) {+ if (faceIdToCluster.isEmpty) {_logger.info('No clusters found');return {};} else {