[mob] Bump minimum face score for clustering to 0.8
This commit is contained in:
parent
e2ed836b16
commit
57fec06d73
|
@ -7,7 +7,7 @@ const kLaplacianThreshold = 15;
|
|||
const kLapacianDefault = 10000.0;
|
||||
|
||||
/// The minimum score for a face to be considered a high quality face for clustering and person detection
|
||||
const kMinHighQualityFaceScore = 0.78;
|
||||
const kMinHighQualityFaceScore = 0.80;
|
||||
|
||||
/// The minimum score for a face to be detected, regardless of quality. Use [kMinHighQualityFaceScore] for high quality faces.
|
||||
const kMinFaceDetectionScore = YoloOnnxFaceDetection.kMinScoreSigmoidThreshold;
|
||||
|
|
|
@ -159,7 +159,7 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {
|
|||
trailingIconIsMuted: true,
|
||||
onTap: () async {
|
||||
await FaceMlService.instance
|
||||
.clusterAllImages(minFaceScore: 0.75, clusterInBuckets: true);
|
||||
.clusterAllImages(clusterInBuckets: true);
|
||||
Bus.instance.fire(PeopleChangedEvent());
|
||||
showShortToast(context, "Done");
|
||||
},
|
||||
|
|
|
@ -60,7 +60,7 @@ class FacesItemWidget extends StatelessWidget {
|
|||
faces.sort((Face a, Face b) => b.score.compareTo(a.score));
|
||||
|
||||
// Remove faces with low scores and blurry faces
|
||||
faces.removeWhere((face) => face.isHighQuality == false);
|
||||
faces.removeWhere((face) => (face.isBlurry || face.score < 0.75));
|
||||
|
||||
// TODO: add deduplication of faces of same person
|
||||
final faceIdsToClusterIds = await FaceMLDataDB.instance
|
||||
|
|
Loading…
Reference in a new issue