[mob] Fix in clustering without buckets

This commit is contained in:
laurenspriem 2024-04-12 12:01:17 +05:30
parent 01914ed3ce
commit ba107c2d25

View file

@ -420,11 +420,15 @@ class FaceMlService {
offset += offsetIncrement;
}
} else {
final int totalFaces = await FaceMLDataDB.instance
.getTotalFaceCount(minFaceScore: minFaceScore);
// Read all the embeddings from the database, in a map from faceID to embedding
final clusterStartTime = DateTime.now();
final faceIdToEmbedding =
await FaceMLDataDB.instance.getFaceEmbeddingMap(
minScore: minFaceScore,
maxFaces: totalFaces,
);
final gotFaceEmbeddingsTime = DateTime.now();
_logger.info(