talhaty commited on
Commit
22b3991
1 Parent(s): dc277ba

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 = gfpgan.GFPGANer(model_path=model_path, upscale=1) # type: ignore[attr-defined]
27
  return FACE_ENHANCER
 
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