mirror of
https://github.com/serengil/deepface.git
synced 2025-06-04 02:20:06 +00:00
Update README.md
get rid of comments to make snippets shorter
This commit is contained in:
parent
8a5e58b87d
commit
484221a91f
@ -149,12 +149,10 @@ Similarity could be calculated by different metrics such as [Cosine Similarity](
|
||||
```python
|
||||
metrics = ["cosine", "euclidean", "euclidean_l2"]
|
||||
|
||||
#face verification
|
||||
result = DeepFace.verify(
|
||||
img1_path = "img1.jpg", img2_path = "img2.jpg", distance_metric = metrics[1]
|
||||
)
|
||||
|
||||
#face recognition
|
||||
dfs = DeepFace.find(img_path = "img1.jpg", db_path = "C:/my_db", distance_metric = metrics[2])
|
||||
```
|
||||
|
||||
@ -185,7 +183,6 @@ backends = [
|
||||
'retinaface', 'mediapipe', 'yolov8', 'yolov11s',
|
||||
'yolov11n', 'yolov11m', 'yunet', 'centerface',
|
||||
]
|
||||
|
||||
detector = backends[3]
|
||||
align = True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user