From 011a0987a7a2ef4e849f0a185fd18843a9d8bffb Mon Sep 17 00:00:00 2001 From: miawoltn Date: Sun, 11 Jun 2023 07:38:27 +0100 Subject: [PATCH 1/2] enhancement for deepface home path creation --- deepface/commons/functions.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deepface/commons/functions.py b/deepface/commons/functions.py index 562e816..11eb2d8 100644 --- a/deepface/commons/functions.py +++ b/deepface/commons/functions.py @@ -36,13 +36,15 @@ def initialize_folder(): OSError: if the folder cannot be created. """ home = get_deepface_home() + deepFaceHomePath = home + "/.deepface" + weightsPath = deepFaceHomePath + "/weights" - if not os.path.exists(home + "/.deepface"): - os.makedirs(home + "/.deepface") + if not os.path.exists(deepFaceHomePath): + os.makedirs(deepFaceHomePath, exist_ok=True) print("Directory ", home, "/.deepface created") - if not os.path.exists(home + "/.deepface/weights"): - os.makedirs(home + "/.deepface/weights") + if not os.path.exists(weightsPath): + os.makedirs(weightsPath, exist_ok=True) print("Directory ", home, "/.deepface/weights created") From 2fd5cc19493bfcd4e630e36fdeed0e6dcbd2ad34 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Fri, 16 Jun 2023 12:28:24 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/README.md b/README.md index 9e59f40..a0cd133 100644 --- a/README.md +++ b/README.md @@ -313,18 +313,6 @@ $ deepface analyze -img_path tests/dataset/img1.jpg You can also run these commands if you are running deepface with docker. Please follow the instructions in the [shell script](https://github.com/serengil/deepface/blob/master/scripts/dockerize.sh#L17). -## Derived applications - -You can use deepface not just for facial recognition tasks. It's very common to use DeepFace for entertainment purposes. For instance, celebrity look-alike prediction and parental look-alike prediction tasks can be done with DeepFace! - -**Parental Look-Alike Prediction** - [`Vlog`](https://youtu.be/nza4tmi9vhE), [`Tutorial`](https://sefiks.com/2022/12/22/decide-whom-your-child-looks-like-with-facial-recognition-mommy-or-daddy/) - -

- -**Celebrity Look-Alike Prediction** - [`Vlog`](https://youtu.be/jaxkEn-Kieo), [`Tutorial`](https://sefiks.com/2019/05/05/celebrity-look-alike-face-recognition-with-deep-learning-in-keras/) - -

- ## Contribution [![Tests](https://github.com/serengil/deepface/actions/workflows/tests.yml/badge.svg)](https://github.com/serengil/deepface/actions/workflows/tests.yml) Pull requests are more than 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) before creating a PR. Once a PR sent, GitHub test workflow will be run automatically and unit test results will be available in [GitHub actions](https://github.com/serengil/deepface/actions) before approval. Besides, workflow will evaluate the code with pylint as well.