sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

[Feature]: Please use headless package of opencv-python

Open tcmaps opened this issue 11 months ago • 0 comments

Feature description

opencv-contrib-python-headless and opencv-python-headless are drop-in replacements for opencv-contrib-python and opencv-python but without Qt dependencies. This makes it easier to run on minimal server environments, and if glib can't be installed without root.

b. Packages for server (headless) environments (such as Docker, cloud environments etc.), no GUI library dependencies

These packages are smaller than the two other packages above because they do not contain any GUI functionality (not compiled with Qt / other GUI components). This means that the packages avoid a heavy dependency chain to X11 libraries and you will have for example smaller Docker images as a result. You should always use these packages if you do not use cv2.imshow et al. or you are using some other package (such as PyQt) than OpenCV to create your GUI.

Option 3 - Headless main modules package: pip install opencv-python-headless
Option 4 - Headless full package (contains both main modules and contrib/extra modules): pip install opencv-contrib-python-headless (check contrib/extra modules listing from [OpenCV documentation](https://docs.opencv.org/master/))

tcmaps avatar Aug 06 '23 12:08 tcmaps