Skip to content

Commit 6ec288f

Browse files
committed
formatting
1 parent 8668ae2 commit 6ec288f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

mlapiconfig.ini

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,18 @@ ml_sequence= {
320320
'pattern': '{{face_detection_pattern}}',
321321
'same_model_sequence_strategy': 'union' # combine results below
322322
},
323-
'sequence': [{
323+
'sequence': [
324+
{
325+
'name': 'Face Detection (TPU)',
326+
'enabled': 'no', # make this yes if you want face detection with TPU first
327+
'face_detection_framework': 'tpu',
328+
'face_weights':'/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2_face_quant_postprocess_edgetpu.tflite',
329+
'face_min_confidence': 0.3
330+
},
331+
{
324332
'name':'Face Recognition (Dlib)', # optional
325333
'enabled': 'yes', # optional
334+
# 'pre_existing_labels': ['face'], # If you use TPU detection first, we can run this ONLY if TPU detects a face first
326335
'save_unknown_faces':'{{save_unknown_faces}}',
327336
'save_unknown_faces_leeway_pixels':{{save_unknown_faces_leeway_pixels}},
328337
'face_detection_framework': '{{face_detection_framework}}',
@@ -338,13 +347,6 @@ ml_sequence= {
338347
'cpu_max_processes': {{cpu_max_processes}},
339348
'cpu_max_lock_wait': {{cpu_max_lock_wait}},
340349
'max_size':800
341-
},
342-
{
343-
'name': 'Face Detection (TPU)',
344-
'enabled': 'no',
345-
'face_detection_framework': 'tpu',
346-
'face_weights':'/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2_face_quant_postprocess_edgetpu.tflite',
347-
'face_min_confidence': 0.3
348350
}]
349351
},
350352

0 commit comments

Comments
 (0)