cv2.ximgproc
hi, i can't run extension a of cv2.ximgproc.
I tried to reinstall it using these commands but it didn't work.
pip uninstall opencv-contrib-python opencv-python
pip install opencv-contrib-python
log :
Error running install.py for extension extensions\stable-diffusion-webui-adverse-cleaner-tab.
Command: "E:\ia\stable-diffusion-webui\venv\Scripts\python.exe" "extensions\stable-diffusion-webui-adverse-cleaner-tab\install.py"
Error code: 1
stdout:
I managed to fix it by removing --user in the install.py file
I managed to fix it by removing --user in the install.py file
indeed
Very strange... In my environment, another error occurred when I didn't have --user and I couldn't install opencv-contrib-python
~~ah, I figured it out. When venv is enabled, the --user flag is not needed~~
I finally found the problem. During webui running it uses opencv, so this extension can't modify opencv package and install any additional module of opencv.
So we need to install opencv-contrib-python by hand when webui is not running.
Did do that... but it says already satisfied, still wont work in webui
(venv) X:\STABLEDIFFUSION\AUTOMATIC11111>pip install opencv-contrib-python Requirement already satisfied: opencv-contrib-python in x:\stablediffusion\automatic11111\venv\lib\site-packages (4.9.0.80) Requirement already satisfied: numpy>=1.17.3 in x:\stablediffusion\automatic11111\venv\lib\site-packages (from opencv-contrib-python) (1.23.5)