Update README.md

get rid of comments to make snippets shorter
This commit is contained in:
Sefik Ilkin Serengil 2025-03-12 13:12:30 +00:00 committed by GitHub
parent 8a5e58b87d
commit 484221a91f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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