Apex-X commited on
Commit
32b5010
·
1 Parent(s): be52846

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 = 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://huggingface.co/TencentARC/GFPGANv1/resolve/main/GFPGANv1.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.onnx')
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/Neus/GFPGANv1.4/reslove/main/GFPGANv1.4.onnx'])
47
  return True
48
 
49