Skip to content

armgit / ente

Public Imported from GitHub
0

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

Better logging for face detection

laurenspriemaad4bd3b79f1
diff --git a/mobile/lib/services/face_ml/face_detection/yolov5face/onnx_face_detection.dart b/mobile/lib/services/face_ml/face_detection/yolov5face/onnx_face_detection.dart
index 86a4d517f7..cc5ec7b138 100644
--- a/mobile/lib/services/face_ml/face_detection/yolov5face/onnx_face_detection.dart
+++ b/mobile/lib/services/face_ml/face_detection/yolov5face/onnx_face_detection.dart
@@ -696,10 +696,6 @@ class YoloOnnxFaceDetection {
iouThreshold: kIouThreshold,
);
- dev.log(
- '[YOLOFaceDetectionService] ${relativeDetections.length} faces detected',
- );
-
return relativeDetections;
}
diff --git a/mobile/lib/services/face_ml/face_ml_service.dart b/mobile/lib/services/face_ml/face_ml_service.dart
index 0658205dbe..b1feb3e7fc 100644
--- a/mobile/lib/services/face_ml/face_ml_service.dart
+++ b/mobile/lib/services/face_ml/face_ml_service.dart
@@ -219,7 +219,8 @@ class FaceMlService {
resultBuilder: resultBuilder,
);
- dev.log("Completed `detectFaces` function, in "
+ dev.log(
+ "${faceDetectionResult.length} faces detected: completed `detectFaces` function, in "
"${stopwatch.elapsedMilliseconds} ms");
// If no faces were detected, return a result with no faces. Otherwise, continue.
@@ -477,6 +478,7 @@ class FaceMlService {
}
final List<Face> faces = [];
if (!result.hasFaces) {
+ debugPrint('No faces detected for file with name:${enteFile.displayName}');
faces.add(
Face(
'${result.fileId}-0',