StartHua/ComfyUI_OOTDiffusion_CXH

No module named 'cv2'

Opened this issue · 1 comments

I have installed cv2:
"Successfully installed opencv-contrib-python-4.7.0.72 opencv-python-4.7.0.72 opencv-python-headless-4.7.0.72", however it still returns the following error:

File "C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1734, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH_init
.py", line 1, in
from .OodGenerater import Ood_hd_CXH
File "C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\OodGenerater.py", line 5, in
from .preprocess.openpose.run_openpose import OpenPose
File "C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH\preprocess\openpose\run_openpose.py", line 11, in
import cv2
ModuleNotFoundError: No module named 'cv2'

Cannot import C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH module for custom nodes: No module named 'cv2'

Import times for custom nodes:
0.0 seconds (IMPORT FAILED): C:\Users\User\Comfty\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH

I recommend to install with miniconda environment here is a tutorial
https://www.comflowy.com/preparation-for-study/install#step-two-download-comfyui