#Runpod serverless for Comfyui with custom nodes

4 messages · Page 1 of 1 (latest)

marsh prawn
#

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?

sturdy oar
#

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
marsh prawn
#

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

sturdy oar