saifhassan / Wav2Lip-HD

High-Fidelity Lip-Syncing with Wav2Lip and Real-ESRGAN
Other
360 stars 77 forks source link

Why do I see that the Real-ESRGAN folder is empty? #21

Open khoitadev opened 1 year ago

khoitadev commented 1 year ago

Why do I see that the Real-ESRGAN folder is empty? What should I add to this folder? If using git clone https://github.com/xinntao/Real-ESRGAN.git, the path Real-ESRGAN/gfpgan/weights/ does not exist. I hope to receive help from everyone

saifhassan commented 1 year ago

Why do I see that the Real-ESRGAN folder is empty? What should I add to this folder? If using git clone https://github.com/xinntao/Real-ESRGAN.git, the path Real-ESRGAN/gfpgan/weights/ does not exist. I hope to receive help from everyone

yeah, you can clone that repo and download weights from ESRGAN.

khoitadev commented 1 year ago

Sorry but I don't fully understand your answer, can you help me explain it more clearly? What I'm understanding here is step 1: git clone https://github.com/xinntao/Real-ESRGAN.git step 2: cd Real-ESRGAN, then download gfpgan folder from git repository https://github.com/TencentARC/GFPGAN.git

I hope you can explain each step more clearly. I sincerely thank you for your help

JuvenileLocksmith commented 1 year ago

Why do I see that the Real-ESRGAN folder is empty? What should I add to this folder? If using git clone https://github.com/xinntao/Real-ESRGAN.git, the path Real-ESRGAN/gfpgan/weights/ does not exist. I hope to receive help from everyone

yeah, you can clone that repo and download weights from ESRGAN.

even after you clone the repo down, it still will not work. Been there, done that.

saifhassan commented 1 year ago

Sorry but I don't fully understand your answer, can you help me explain it more clearly? What I'm understanding here is step 1: git clone https://github.com/xinntao/Real-ESRGAN.git step 2: cd Real-ESRGAN, then download gfpgan folder from git repository https://github.com/TencentARC/GFPGAN.git

I hope you can explain each step more clearly. I sincerely thank you for your help

yeah., these steps are fine. These should work.

AIhasArrived commented 10 months ago

Did you guys have to change the code? Is this how your folder should look like ?? @JuvenileLocksmith @khoitadev @saifhassan image

and inside it: image

I still get this error:

Real-ESRGAN\inference_realesrgan.py", line 119, in main
    from gfpgan import GFPGANer
ImportError: cannot import name 'GFPGANer' from 'gfpgan' (unknown location

I went checking the code it says:

if args.face_enhance:  # Use GFPGAN for face enhancement
        from gfpgan import GFPGANer
        face_enhancer = GFPGANer(
            model_path='https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth',
            upscale=args.outscale,
            arch='clean',
            channel_multiplier=2,
            bg_upsampler=upsampler)

Isn't there a problem with this code maybe???