stablediffusion-infinity icon indicating copy to clipboard operation
stablediffusion-infinity copied to clipboard

Windows version, ModuleNotFoundError: No module named 'cv2'

Open Gumwars opened this issue 2 years ago • 3 comments

After following the instructions and opening the project in Jupyter Lab, I attempt to open the ipynb file for Windows where the second code block is highlighted red with a module not found error. There are two tracebacks; the first is for "from utils import *" and the second is "import cv2". The error at the bottom of the code block states, "No module named 'cv2'.

I'm more than happy to supply whatever information or data you require. Thank you in advance.

Gumwars avatar Sep 16 '22 00:09 Gumwars

Try running this: conda install -c conda-forge opencv It fixed that error for me and others.

Kim2091 avatar Sep 16 '22 01:09 Kim2091

Try running this: conda install -c conda-forge opencv It fixed that error for me and others.

This didn't fix the issue for me. Still:

``--------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In [4], line 6 3 from ipycanvas import Canvas, hold_canvas, MultiCanvas 4 import ipywidgets as widgets ----> 6 from utils import * 7 from canvas import InfCanvas

File ~\stablediffusion-infinity\utils.py:3 1 from PIL import Image 2 from PIL import ImageFilter ----> 3 import cv2 4 import numpy as np 5 import scipy

ImportError: DLL load failed while importing cv2: The specified module could not be found.``

Vasissualiyp avatar Sep 16 '22 22:09 Vasissualiyp

The error moved down stream for me. I was able to get the application running, but it's throwing a "can't find outpaint" when I try to expand on an image.

Gumwars avatar Sep 18 '22 00:09 Gumwars