How to handle different modules of opencv and opencv-contrib?? #355
geroldmeisinger
started this conversation in
General
Replies: 1 comment
-
also see:
comfy specific: apparently it also depends on the order of installation: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to add a edge drawing preprocessor which requires
opencv-contrib-python
. but as the official docu states:https://pypi.org/project/opencv-python/#installation-and-usage
If any non-contrib module is installed I get errors like
AttributeError: module 'cv2.ximgproc' has no attribute 'createEdgeDrawing'
.requirements.txt
,mediapipe
andalbumentations
all requireopencv-python-headless
. Some node_wrappers have lines likerun_script([sys.executable, '-s', '-m', 'pip', 'install', 'mediapipe'])
which will again install non-contrib modules. all of them are installed in the same environment as ComfyUI, so if any custom node down the line installs a non-contrib module, everything breaks again.What is the official way to handle these modules in the ecosystem?
Beta Was this translation helpful? Give feedback.
All reactions