TencentARC / GFPGAN

GFPGAN aims at developing Practical Algorithms for Real-world Face Restoration.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gfpgan file

MehmetcanTozlu opened this issue · 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.