chengzeyi / stable-fast

Best inference performance optimization framework for HuggingFace Diffusers on NVIDIA GPUs.
MIT License
1.05k stars 59 forks source link

get rid of OpenCV related deps, possible? #113

Closed wingmrc closed 5 months ago

wingmrc commented 5 months ago

I am using stable-fast with comfyui and other custom nodes. its always giving me cv2 related errors. as cv2 has variations such as opencv-python opencv-python-headless opencv-contrib-python opencv-contrib-python-headless which are required by many other nodes for many versions.

here is a sample of sfast related error.

ages\Python310\site-packages\sfast\utils\env.py", line 74, in _configure_libraries
    cv2.ocl.setUseOpenCL(False)
AttributeError: module 'cv2.ocl' has no attribute 'setUseOpenCL'

just wondering if it is possible to remove opencv deps.

chengzeyi commented 5 months ago

@wingmrc This has been fixed in the latest main branch. However, the CI is broken now due to shortage of disk space so please download and compile yourself.