Setup Environment

Follow the steps in How to Deploy a RunPod Server

No system pre-requisites are required for RunPod when using the container image runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04

Continue with installing ComfyUI and ComfyStream below

Install ComfyUI and ComfyStream

  1. Clone the ComfyStream Setup Scripts to your home directory
cd ~/
git clone https://github.com/ryanontheinside/ComfyStream_Setup_Scripts
  1. Run the initial setup script to install Conda, ComfyStream and ComfyUI:
chmod +x ComfyStream_Setup_Scripts/runpod/initial_setup.sh
bash ComfyStream_Setup_Scripts/runpod/initial_setup.sh
  1. Initialize conda by running the following command:
/workspace/miniconda3/bin/conda init bash

Next Steps

  1. Install Custom Nodes in ComfyUI and ComfyStream
  2. Run ComfyUI to validate the install
  3. Run ComfyStream to start a live stream with your ComfyUI workflow!

Troubleshooting

If you need to start over due to unresolvable package conflicts, you can delete the conda environments and start over:

conda deactivate
conda remove --name comfystream --all
conda remove --name comfyui --all

Finally, run the setup script again to recreate the conda environments:

bash ./ComfyStream_Setup_Scripts/runpod/initial_setup.sh