[mob] Small changes

This commit is contained in:
laurenspriem 2024-04-18 15:29:02 +05:30
parent afbb1c69c2
commit 79e763bf16

View file

@ -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 =