GFPGAN
GFPGAN copied to clipboard
gfpgan file
def get_face_enhancer() -> Any: global FACE_ENHANCER
with THREAD_LOCK:
if FACE_ENHANCER is None:
model_path = resolve_relative_path('/workspace/roop/models/GFPGANv1.4.pth') #('../models/GFPGANv1.4.pth')
FACE_ENHANCER = GFPGANer(model_path=model_path,
upscale=1,
device=get_device()
)
return FACE_ENHANCER
gfpgan file downloading code where can we find it in the code. I want to give it as a path from local.