Update roop/processors/frame/face_enhancer.py
Browse files
roop/processors/frame/face_enhancer.py
CHANGED
@@ -21,7 +21,7 @@ def get_face_enhancer() -> Any:
|
|
21 |
|
22 |
with THREAD_LOCK:
|
23 |
if FACE_ENHANCER is None:
|
24 |
-
model_path = resolve_relative_path('../models/GFPGANv1.pth')
|
25 |
# todo: set models path https://github.com/TencentARC/GFPGAN/issues/399
|
26 |
FACE_ENHANCER = gfpgan.GFPGANer(model_path=model_path, upscale=1) # type: ignore[attr-defined]
|
27 |
return FACE_ENHANCER
|
@@ -29,7 +29,7 @@ def get_face_enhancer() -> Any:
|
|
29 |
|
30 |
def pre_check() -> bool:
|
31 |
download_directory_path = resolve_relative_path('../models')
|
32 |
-
conditional_download(download_directory_path, ['https://huggingface.co/talhaty/GFPGANv1/resolve/main/GFPGANv1.pth'])
|
33 |
return True
|
34 |
|
35 |
|
|
|
21 |
|
22 |
with THREAD_LOCK:
|
23 |
if FACE_ENHANCER is None:
|
24 |
+
model_path = resolve_relative_path('../models/GFPGANv1.4.pth')
|
25 |
# todo: set models path https://github.com/TencentARC/GFPGAN/issues/399
|
26 |
FACE_ENHANCER = gfpgan.GFPGANer(model_path=model_path, upscale=1) # type: ignore[attr-defined]
|
27 |
return FACE_ENHANCER
|
|
|
29 |
|
30 |
def pre_check() -> bool:
|
31 |
download_directory_path = resolve_relative_path('../models')
|
32 |
+
conditional_download(download_directory_path, ['https://huggingface.co/talhaty/GFPGANv1.4/resolve/main/GFPGANv1.4.pth'])
|
33 |
return True
|
34 |
|
35 |
|