mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
Fix hard coded file name in message
This commit is contained in:
parent
5e55fafdb5
commit
a90bf8e1c0
@ -11,7 +11,7 @@ def build_model():
|
|||||||
file_name = "face_detection_yunet_2023mar.onnx"
|
file_name = "face_detection_yunet_2023mar.onnx"
|
||||||
home = functions.get_deepface_home()
|
home = functions.get_deepface_home()
|
||||||
if os.path.isfile(home + f"/.deepface/weights/{file_name}") is False:
|
if os.path.isfile(home + f"/.deepface/weights/{file_name}") is False:
|
||||||
print("yunet_n_dynamic.onnx will be downloaded...")
|
print(f"{file_name} will be downloaded...")
|
||||||
output = home + f"/.deepface/weights/{file_name}"
|
output = home + f"/.deepface/weights/{file_name}"
|
||||||
gdown.download(url, output, quiet=False)
|
gdown.download(url, output, quiet=False)
|
||||||
face_detector = cv2.FaceDetectorYN_create(
|
face_detector = cv2.FaceDetectorYN_create(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user