From 3e361e7701dc1f1183ceba6bf1744afe279cc0df Mon Sep 17 00:00:00 2001 From: henryruhs Date: Tue, 26 Sep 2023 21:48:44 +0200 Subject: [PATCH] Hotfix skip download --- facefusion/processors/frame/modules/face_enhancer.py | 2 +- facefusion/processors/frame/modules/frame_enhancer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/facefusion/processors/frame/modules/face_enhancer.py b/facefusion/processors/frame/modules/face_enhancer.py index de14cae2..fda37b0c 100644 --- a/facefusion/processors/frame/modules/face_enhancer.py +++ b/facefusion/processors/frame/modules/face_enhancer.py @@ -45,7 +45,7 @@ def pre_check() -> bool: def pre_process(mode : ProcessMode) -> bool: - if not is_download_done(MODEL_URL, MODEL_PATH): + if not facefusion.globals.skip_download and not is_download_done(MODEL_URL, MODEL_PATH): update_status(wording.get('model_download_not_done') + wording.get('exclamation_mark'), NAME) return False elif not is_file(MODEL_PATH): diff --git a/facefusion/processors/frame/modules/frame_enhancer.py b/facefusion/processors/frame/modules/frame_enhancer.py index 2826bfd5..55009353 100644 --- a/facefusion/processors/frame/modules/frame_enhancer.py +++ b/facefusion/processors/frame/modules/frame_enhancer.py @@ -58,7 +58,7 @@ def pre_check() -> bool: def pre_process(mode : ProcessMode) -> bool: - if not facefusion.globals.skip_download and not facefusion.globals.skip_download and not is_download_done(MODEL_URL, MODEL_PATH): + if not facefusion.globals.skip_download and not is_download_done(MODEL_URL, MODEL_PATH): update_status(wording.get('model_download_not_done') + wording.get('exclamation_mark'), NAME) return False elif not is_file(MODEL_PATH):