WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.15k stars 170 forks source link

fix opencv-python handling to avoid conflict #461

Open Maslino opened 1 month ago

Maslino commented 1 month ago

There are four opencv python packages:

Only one of them should be installed otherwise there would have conflict.

The code line

https://github.com/WASasquatch/was-node-suite-comfyui/blob/ee2e31a1e5fd85ad6f5c36831ffda6fea8f249c7/WAS_Node_Suite.py#L14488

only consider opencv-python and opencv-python-headless and the other two are not considered. The above line is also not neccessary because if opencv package was not installed, an ImportError exception would be thrown.

This PR tries to fix this problem.