GFPGAN icon indicating copy to clipboard operation
GFPGAN copied to clipboard

gfpgan file

Open MehmetcanTozlu opened this issue 2 years ago • 0 comments

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.

MehmetcanTozlu avatar Feb 14 '24 14:02 MehmetcanTozlu