Real-ESRGAN icon indicating copy to clipboard operation
Real-ESRGAN copied to clipboard

ModuleNotFoundError: No module named 'cv2' on Windows

Open MatteoSid opened this issue 1 year ago • 3 comments

I installed the requirements.txt with pip install -r requirements.txt but when i try to execute the comand python inference_realesrgan_video.py -i video.mp4 -n realesr-animevideov3 -s 2 --suffix outx2 i have the error:

Traceback (most recent call last):
  File "C:\Users\matte\Documents\GitHub\Real-ESRGAN\inference_realesrgan_video.py", line 2, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'

I tried to reinstall opencv manually and I also tried the dcontrib version but still doesen't work.

I'm working on Windows 11 with Python 3.10.

MatteoSid avatar Apr 13 '23 19:04 MatteoSid

try using: pip install opencv-python and then running bash again

AbdurrehmanSubhani avatar Sep 27 '23 10:09 AbdurrehmanSubhani

try using: pip install opencv-python and then running bash again

it's again fails...

tzktz avatar Dec 29 '23 11:12 tzktz