Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Small changes

laurenspriem79e763bf162b
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 f8c180b4f7..7d822f9e77 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
@@ -732,12 +732,12 @@ class FaceClusteringService {
final Map<String, int> newFaceIdToCluster = {};
final stopwatchClustering = Stopwatch()..start();
for (int i = 0; i < totalFaces; i++) {
+ if ((i + 1) % 250 == 0) {
+ log("[CompleteClustering] ${DateTime.now()} Processed ${i + 1} faces");
+ }
if (faceInfos[i].clusterId != null) continue;
int closestIdx = -1;
double closestDistance = double.infinity;
- if (i + 1 % 250 == 0) {
- log("[CompleteClustering] ${DateTime.now()} Processed ${i - 1} faces");
- }
for (int j = 0; j < totalFaces; j++) {
if (i == j) continue;
final double distance =