[mob] constant increments in bucket clustering

This commit is contained in:
laurenspriem 2024-03-30 15:17:26 +05:30
parent f5ea834fad
commit 7f66bd2ed0

View file

@ -419,11 +419,7 @@ class FaceMlService {
await FaceMLDataDB.instance await FaceMLDataDB.instance
.updatePersonIDForFaceIDIFNotSet(faceIdToCluster); .updatePersonIDForFaceIDIFNotSet(faceIdToCluster);
if (offset == 0) { offset += offsetIncrement;
offset += offsetIncrement;
} else {
offset += bucketSize;
}
} }
} else { } else {
// Read all the embeddings from the database, in a map from faceID to embedding // Read all the embeddings from the database, in a map from faceID to embedding