R
RunPod3d ago
Mert

Runpod serverless for Comfyui with custom nodes

I want to use two custom nodes in ComfyUI in runpod serverless: ComfyUI_CatVTON_Wrapper It requires the following dependencies: numpy<2.0 pillow scipy diffusers accelerate>=0.30.0 transformers>=4.38.2 Additionally, this node contains a nested project located at ComfyUI_CatVTON_Wrapper/py/catvton/SCHP, which specifically requires: opencv-python==4.4.0.46 I can successfully build and use this node without any issues. human-parser-comfyui-node This node requires the following dependencies (defined in requirements.txt): ninja torch opencv-python numpy The problem arises when I try to use these two custom nodes together. The Docker image build fails, likely due to conflicting dependencies between the two nodes, particularly around opencv-python and numpy. Could you help me identify and resolve this issue so I can successfully build a Docker image that works with both custom nodes?
3 Replies
wuxmes
wuxmes3d ago
always uninstall both opencv and opencv-python and then install opencv-python-headless like so
pip uninstall -y opencv-python-headless opencv-python-contrib opencv-python && \
pip install opencv-python-headless==4.10.0.84
pip uninstall -y opencv-python-headless opencv-python-contrib opencv-python && \
pip install opencv-python-headless==4.10.0.84
Mert
MertOP3d ago
Where should i do this in dockerfile. Before or after the install_custom_node_dependencies.sh Can you please help if you have the time
wuxmes
wuxmes3d ago
after all requirements are installed a lot of custom nodes try to install opencv again and cause issues
Want results from more Discord servers?
Add your server