saifhassan/Wav2Lip-HD

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

AIhasArrived opened this issue · 1 comments

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?

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.