chflame163 / ComfyUI_LayerStyle

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
MIT License
1.37k stars 77 forks source link

ImportError: cannot import name 'guidedFilter' from 'cv2.ximgproc' #5

Open chflame163 opened 8 months ago

chflame163 commented 8 months ago

This error is caused by incorrect version of the opencv-contrib-python package,or this package is overwriteen by other opencv packages.

Solution:

yuncx commented 5 days ago

ComfyUI_LayerStyle conflicts with was-node-suite-comfyui “opencv-python-headless” Is there a way to resolve this? After installing the ComfyUI_LayerStyle dependency, was-node-suite-comfyui automatically installs dependencies including “opencv-python-headless” every time comfyui is started, resulting in a ComfyUI_LayerStyle error.

chflame163 commented 5 days ago

ComfyUI_LayerStyle conflicts with was-node-suite-comfyui “opencv-python-headless” Is there a way to resolve this? After installing the ComfyUI_LayerStyle dependency, was-node-suite-comfyui automatically installs dependencies including “opencv-python-headless” every time comfyui is started, resulting in a ComfyUI_LayerStyle error.

You can temporarily comment the line containing opencv-python-headless in was-node-suite-comfyui/requirements.txt

yuncx commented 5 days ago

ComfyUI_LayerStyle conflicts with was-node-suite-comfyui “opencv-python-headless” Is there a way to resolve this? After installing the ComfyUI_LayerStyle dependency, was-node-suite-comfyui automatically installs dependencies including “opencv-python-headless” every time comfyui is started, resulting in a ComfyUI_LayerStyle error.

You can temporarily comment the line containing opencv-python-headless in was-node-suite-comfyui/requirements.txt

This was useful, and it really did stop installing automatically

yovsac commented 27 minutes ago

Hi, my layer style nodes dont work. It seems like you have resolved it. What was the problem? What do you mean by "temporarily comment the line containing opencv-python-headless.... ?