Skip to content

armgit / ente

Public Imported from GitHub
0

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

Lower face detection threshold during indexing

laurenspriem686ab262b21b
diff --git a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart b/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart
index 5f2458c629..662e1a778b 100644
--- a/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart
+++ b/mobile/lib/services/machine_learning/face_ml/face_detection/face_detection_service.dart
@@ -31,7 +31,7 @@ class FaceDetectionService extends MlModel {
static const int kInputWidth = 640;
static const int kInputHeight = 640;
static const double kIouThreshold = 0.4;
- static const double kMinScoreSigmoidThreshold = 0.7;
+ static const double kMinScoreSigmoidThreshold = 0.5;
static const int kNumKeypoints = 5;
// Singleton pattern
@@ -82,7 +82,11 @@ class FaceDetectionService extends MlModel {
'Face detection is finished, in ${inferenceTime.difference(startTime).inMilliseconds} ms (preprocessing: $preprocessingMs ms, inference: $inferenceMs ms)',
);
} catch (e, s) {
- _logger.severe('Error while running inference (PlatformPlugin: ${MlModel.usePlatformPlugin})', e, s);
+ _logger.severe(
+ 'Error while running inference (PlatformPlugin: ${MlModel.usePlatformPlugin})',
+ e,
+ s,
+ );
throw YOLOFaceInterpreterRunException();
}
try {