Installation
Automatic Install (Recommended)
ComfyUI Manager
As of version 0.1.0, this extension is meant to be installed with the ComfyUI-Manager, which helps a lot with handling the various install issues faced by various environments.
Virtual Env
There is also an experimental one liner install using the following command from ComfyUI's root. It will download the code, install the dependencies and run the install script:
curl -sSL "https://raw.githubusercontent.com/username/repo/main/install.py" | python3 -
Models Download
Some nodes require extra models to be downloaded, you can interactively do it using the same python environment as above:
python scripts/download_models.py
then follow the prompt or just press enter to download every models.
Note You can use the following to download all models without prompt:
python scripts/download_models.py -y
Old installation method (MANUAL)
Dependencies
Custom Virtualenv (I use this mainly)
- Make sure you are in the Python environment you use for ComfyUI.
- Install the required dependencies by running the following command:
pip install -r comfy_mtb/requirements.txt
Comfy-portable / standalone (from ComfyUI releases)
If you use the python-embeded
from ComfyUI standalone then you are not able to pip install dependencies with binaries when they don't have wheels, in this case check the last release there is a bundle for linux and windows with prebuilt wheels (only the ones that require building from source), check this issue (#1) for more info.
Google Colab
Add a new code cell just after the Run ComfyUI with localtunnel (Recommended Way) header (before the code cell)
# download the nodes
!git clone --recursive https://github.com/melMass/comfy_mtb.git custom_nodes/comfy_mtb
# download all models
!python custom_nodes/comfy_mtb/scripts/download_models.py -y
# install the dependencies
!pip install -r custom_nodes/comfy_mtb/reqs.txt -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.0/index.html
If after running this, colab complains about needing to restart runtime, do it, and then do not rerun earlier cells, just the one to run the localtunnel. (you might have to add a cell with %cd ComfyUI
first...)
Note: If you don't need all models, remove the
-y
as collab actually supports user input: