Browse Source

Clean up logs

laurenspriem 1 year ago
parent
commit
8ef673fe58

+ 0 - 4
mobile/lib/services/face_ml/face_detection/yolov5face/onnx_face_detection.dart

@@ -373,10 +373,6 @@ class YoloOnnxFaceDetection {
 
 
     final relativeDetections = _yoloPostProcessOutputs(outputs, newSize);
     final relativeDetections = _yoloPostProcessOutputs(outputs, newSize);
 
 
-    dev.log(
-      '${relativeDetections.length} faces detected, with scores ${relativeDetections.map((e) => e.score).toList()}',
-    );
-
     stopwatch.stop();
     stopwatch.stop();
     _logger.info(
     _logger.info(
       'predict() face detection executed in ${stopwatch.elapsedMilliseconds}ms',
       'predict() face detection executed in ${stopwatch.elapsedMilliseconds}ms',

+ 1 - 1
mobile/lib/services/face_ml/face_ml_service.dart

@@ -219,7 +219,7 @@ class FaceMlService {
             );
             );
 
 
             dev.log(
             dev.log(
-                "${faceDetectionResult.length} faces detected: completed `detectFacesSync` function, in "
+                "${faceDetectionResult.length} faces detected with scores ${faceDetectionResult.map((e) => e.score).toList()}: completed `detectFacesSync` function, in "
                 "${stopwatch.elapsedMilliseconds} ms");
                 "${stopwatch.elapsedMilliseconds} ms");
 
 
             // If no faces were detected, return a result with no faces. Otherwise, continue.
             // If no faces were detected, return a result with no faces. Otherwise, continue.