From 233ec115712c154723bc24be838575f686caf781 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Sun, 5 May 2024 07:55:14 +0100 Subject: [PATCH] continue lintings on readme --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 48686d2..0da9071 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ This function verifies face pairs as same person or different persons. It expect ```python result = DeepFace.verify( img1_path = "img1.jpg", - img2_path = "img2.jpg" + img2_path = "img2.jpg", ) ``` @@ -79,7 +79,7 @@ result = DeepFace.verify( ```python dfs = DeepFace.find( img_path = "img1.jpg", - db_path = "C:/workspace/my_db" + db_path = "C:/workspace/my_db", ) ``` @@ -133,20 +133,20 @@ models = [ result = DeepFace.verify( img1_path = "img1.jpg", img2_path = "img2.jpg", - model_name = models[0] + model_name = models[0], ) #face recognition dfs = DeepFace.find( img_path = "img1.jpg", db_path = "C:/workspace/my_db", - model_name = models[1] + model_name = models[1], ) #embeddings embedding_objs = DeepFace.represent( img_path = "img.jpg", - model_name = models[2] + model_name = models[2], ) ``` @@ -183,14 +183,14 @@ metrics = ["cosine", "euclidean", "euclidean_l2"] result = DeepFace.verify( img1_path = "img1.jpg", img2_path = "img2.jpg", - distance_metric = metrics[1] + distance_metric = metrics[1], ) #face recognition dfs = DeepFace.find( img_path = "img1.jpg", db_path = "C:/workspace/my_db", - distance_metric = metrics[2] + distance_metric = metrics[2], ) ``` @@ -203,7 +203,7 @@ Deepface also comes with a strong facial attribute analysis module including [`a ```python objs = DeepFace.analyze( img_path = "img4.jpg", - actions = ['age', 'gender', 'race', 'emotion'] + actions = ['age', 'gender', 'race', 'emotion'], ) ``` @@ -238,32 +238,32 @@ backends = [ obj = DeepFace.verify( img1_path = "img1.jpg", img2_path = "img2.jpg", - detector_backend = backends[0] + detector_backend = backends[0], ) #face recognition dfs = DeepFace.find( img_path = "img.jpg", db_path = "my_db", - detector_backend = backends[1] + detector_backend = backends[1], ) #embeddings embedding_objs = DeepFace.represent( img_path = "img.jpg", - detector_backend = backends[2] + detector_backend = backends[2], ) #facial analysis demographies = DeepFace.analyze( img_path = "img4.jpg", - detector_backend = backends[3] + detector_backend = backends[3], ) #face detection and alignment face_objs = DeepFace.extract_faces( img_path = "img.jpg", - detector_backend = backends[4] + detector_backend = backends[4], ) ```