We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf8bcb commit 011a098Copy full SHA for 011a098
deepface/commons/functions.py
@@ -36,13 +36,15 @@ def initialize_folder():
36
OSError: if the folder cannot be created.
37
"""
38
home = get_deepface_home()
39
+ deepFaceHomePath = home + "/.deepface"
40
+ weightsPath = deepFaceHomePath + "/weights"
41
- if not os.path.exists(home + "/.deepface"):
- os.makedirs(home + "/.deepface")
42
+ if not os.path.exists(deepFaceHomePath):
43
+ os.makedirs(deepFaceHomePath, exist_ok=True)
44
print("Directory ", home, "/.deepface created")
45
- if not os.path.exists(home + "/.deepface/weights"):
- os.makedirs(home + "/.deepface/weights")
46
+ if not os.path.exists(weightsPath):
47
+ os.makedirs(weightsPath, exist_ok=True)
48
print("Directory ", home, "/.deepface/weights created")
49
50
0 commit comments