Apex-X commited on
Commit
5ff0ac1
1 Parent(s): ffc4ac4

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.4.pth')
25
  # todo: set models path -> https://github.com/TencentARC/GFPGAN/issues/399
26
  FACE_ENHANCER = GFPGANer(model_path=model_path, upscale=1, device=get_device())
27
  return FACE_ENHANCER
@@ -43,7 +43,7 @@ def clear_face_enhancer() -> None:
43
 
44
  def pre_check() -> bool:
45
  download_directory_path = resolve_relative_path('../models')
46
- conditional_download(download_directory_path, ['https://github.com/TencentARC/GFPGAN/releases/download/v1.3.4/GFPGANv1.4.pth'])
47
  return True
48
 
49
 
 
21
 
22
  with THREAD_LOCK:
23
  if FACE_ENHANCER is None:
24
+ model_path = resolve_relative_path('../models/GFPGANv1.4')
25
  # todo: set models path -> https://github.com/TencentARC/GFPGAN/issues/399
26
  FACE_ENHANCER = GFPGANer(model_path=model_path, upscale=1, device=get_device())
27
  return FACE_ENHANCER
 
43
 
44
  def pre_check() -> bool:
45
  download_directory_path = resolve_relative_path('../models')
46
+ conditional_download(download_directory_path, ['https://huggingface.co/th2w33knd/GFPGANv1.4/resolve/main/GFPGANv1.4.pth'])
47
  return True
48
 
49