Fix hard coded file name in message

This commit is contained in:
Anthr@X 2023-07-08 23:29:28 +10:00
parent 5e55fafdb5
commit a90bf8e1c0

View File

@ -11,7 +11,7 @@ def build_model():
file_name = "face_detection_yunet_2023mar.onnx"
home = functions.get_deepface_home()
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}"
gdown.download(url, output, quiet=False)
face_detector = cv2.FaceDetectorYN_create(