From ecf43b59d02e9c490f14e89962b3c6fc062213d2 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Thu, 24 Jun 2021 00:14:12 +0300 Subject: [PATCH 1/2] new version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3d52e16..0bd0078 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="deepface", - version="0.0.58", + version="0.0.59", author="Sefik Ilkin Serengil", author_email="serengil@gmail.com", description="A Lightweight Face Recognition and Facial Attribute Analysis Framework (Age, Gender, Emotion, Race) for Python", From a99b9c62c1284cfaaad38109881bd0b5b3ce1b16 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Thu, 24 Jun 2021 00:15:08 +0300 Subject: [PATCH 2/2] no need prebuilt models anymore --- README.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/README.md b/README.md index ff95c6e..bf3201f 100644 --- a/README.md +++ b/README.md @@ -198,14 +198,6 @@ home = str(Path.home()) print("HOME_FOLDER is ",home) ``` -If you are going to call deepface functions in a for loop, then you should build the model once and pass to the functions. This avoids to cause a memory problem and also it will speed you up. - -```python -model_name = "Facenet" -model = DeepFace.build_model(model_name) -DeepFace.verify("img1.jpg", "img2.jpg", model_name = model_name, model = model) -``` - ## Contribution Pull requests are welcome. You should run the unit tests locally by running [`test/unit_tests.py`](https://github.com/serengil/deepface/blob/master/tests/unit_tests.py). Please share the unit test result logs in the PR. Deepface is currently compatible with TF 1 and 2 versions. Change requests should satisfy those requirements both.