saifhassan / Wav2Lip-HD

High-Fidelity Lip-Syncing with Wav2Lip and Real-ESRGAN
Other
320 stars 75 forks source link

if len(img.shape) == 3 and img.shape[2] == 4: AttributeError: 'NoneType' object has no attribute 'shape' #33

Closed AIhasArrived closed 8 months ago

AIhasArrived commented 8 months ago

I dont understand why its not working, I tried this: ...Wav2Lip-HD\Real-ESRGAN>py inference_realesrgan.py -n RealESRGAN_x4plus -i quicktestP1.mp4 --output quick2FramesHD --outscale 3.5 --face_enhance

And gets me:

...\Real-ESRGAN\inference_realesrgan.py", line 138, in main
    if len(img.shape) == 3 and img.shape[2] == 4:
           ^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'shape'

Any idea please?

AIhasArrived commented 8 months ago

it was because I was not referring a folder in the command, (the folder with frames) I was pointing to a video as in input. Solved it.