was-node-suite-comfyui
was-node-suite-comfyui copied to clipboard
fix opencv-python handling to avoid conflict
There are four opencv python packages:
- opencv-python
- opencv-contrib-python
- opencv-python-headless
- opencv-contrib-python-headless
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.