mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
custom verification
This commit is contained in:
parent
8a6eea67bd
commit
7938aa60c4
@ -46,9 +46,7 @@ Instead of using pre-tuned threshold values, you can alternatively check the dis
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
distance = result[1] #the less the better
|
distance = result[1] #the less the better
|
||||||
|
|
||||||
threshold = 0.30 #threshold for VGG-Face and Cosine Similarity
|
threshold = 0.30 #threshold for VGG-Face and Cosine Similarity
|
||||||
|
|
||||||
if distance < threshold:
|
if distance < threshold:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user