Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Handle people suggestions without clusters

Neeraj Gupta9c8b7dbbde6b
diff --git a/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart
index 13d28a1258..113ba1ecde 100644
--- a/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart
+++ b/mobile/apps/photos/lib/services/machine_learning/face_ml/feedback/cluster_feedback.dart
@@ -1527,6 +1527,9 @@ class ClusterFeedbackService<T> {
final allClusterIdsToCountMap = await mlDataDB.clusterIdToFaceCount();
final ignoredClusters = await mlDataDB.getPersonIgnoredClusters(p.remoteID);
final personClusters = await mlDataDB.getPersonClusterIDs(p.remoteID);
+ if (personClusters.isEmpty) {
+ return [];
+ }
final personFaceIDs = await mlDataDB.getFaceIDsForPerson(p.remoteID);
final personFileIDs = personFaceIDs.map(getFileIdFromFaceId<int>).toSet();
w?.log(