[mob][photos] Log clustering time for each bucket
This commit is contained in:
parent
9f5c5fde49
commit
c783735e86
1 changed files with 2 additions and 1 deletions
|
@ -317,6 +317,7 @@ class FaceMlService {
|
||||||
int bucket = 1;
|
int bucket = 1;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
final bucketStartTime = DateTime.now();
|
||||||
final faceInfoForClustering =
|
final faceInfoForClustering =
|
||||||
await FaceMLDataDB.instance.getFaceInfoForClustering(
|
await FaceMLDataDB.instance.getFaceInfoForClustering(
|
||||||
minScore: minFaceScore,
|
minScore: minFaceScore,
|
||||||
|
@ -354,7 +355,7 @@ class FaceMlService {
|
||||||
await FaceMLDataDB.instance
|
await FaceMLDataDB.instance
|
||||||
.clusterSummaryUpdate(clusteringResult.newClusterSummaries!);
|
.clusterSummaryUpdate(clusteringResult.newClusterSummaries!);
|
||||||
_logger.info(
|
_logger.info(
|
||||||
'Done with clustering ${offset + faceInfoForClustering.length} embeddings (${(100 * (offset + faceInfoForClustering.length) / totalFaces).toStringAsFixed(0)}%) in bucket $bucket, offset: $offset',
|
'Done with clustering ${offset + faceInfoForClustering.length} embeddings (${(100 * (offset + faceInfoForClustering.length) / totalFaces).toStringAsFixed(0)}%) in bucket $bucket, offset: $offset, in ${DateTime.now().difference(bucketStartTime).inSeconds} seconds',
|
||||||
);
|
);
|
||||||
if (offset + bucketSize >= totalFaces) {
|
if (offset + bucketSize >= totalFaces) {
|
||||||
_logger.info('All faces clustered');
|
_logger.info('All faces clustered');
|
||||||
|
|
Loading…
Reference in a new issue