mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Adjust unknown
This commit is contained in:
parent
0618ca6563
commit
870ff63d96
@ -59,7 +59,7 @@ Fine-tune face recognition with these optional parameters:
|
|||||||
### Recognition
|
### Recognition
|
||||||
|
|
||||||
- `model_size`: Which model size to use, options are `small` or `large`
|
- `model_size`: Which model size to use, options are `small` or `large`
|
||||||
- `unknown_score`: Min score to mark a person as a potential match, matches below this will be marked as unknown.
|
- `unknown_score`: Min score to mark a person as a potential match, matches at or below this will be marked as unknown.
|
||||||
- Default: `0.8`.
|
- Default: `0.8`.
|
||||||
- `recognition_threshold`: Recognition confidence score required to add the face to the object as a sub label.
|
- `recognition_threshold`: Recognition confidence score required to add the face to the object as a sub label.
|
||||||
- Default: `0.9`.
|
- Default: `0.9`.
|
||||||
|
|||||||
@ -241,7 +241,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
|||||||
|
|
||||||
sub_label, score = res
|
sub_label, score = res
|
||||||
|
|
||||||
if score < self.face_config.unknown_score:
|
if score <= self.face_config.unknown_score:
|
||||||
sub_label = "unknown"
|
sub_label = "unknown"
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user