Models are essential
Models are essential building blocks for media generation workflows. They can be combined and mixed to achieve different creative effects. The word model has many different meanings. Here, it means a data file carrying information that is required for a node graph to do its work. Specifically, it’s a data structure that models some function. As a verb, to model something means to represent it or provide an example. The primary example of a model data file in ComfyUI is an AI diffusion model. This is a large set of data that represents the complex relationships among text strings and images, making it possible to translate words into pictures or vice versa. Other examples of common models used for image generation are multimodal vision and language models such as CLIP, and upscaling models such as RealESRGAN.Model files
Model files are indispensable for generative media production. Without them, workflows cannot proceed effectively. Models are not included in the ComfyUI installation, but ComfyUI can often automatically download and install missing model files. Many models can be downloaded and installed from the ComfyUI Manager window. Models can also be found at websites such as huggingface.co, civitai.green, and github.com.Using Models in ComfyUI
- Download and place them in the ComfyUI program directory
- Within the models folder, you’ll find subfolders for various types of models, such as checkpoints
- The ComfyUI Manager helps to automate the process of searching, downloading, and installing
- Restart ComfyUI if it’s running
- In your workflow, create the node appropriate to the model type, e.g. Load Checkpoint, Load LoRA, Load VAE
- In the loader node, choose the model you wish to use
- Connect the loader node to other nodes in your workflow
Adding Extra Model Paths
If you want to manage your model files outside ofComfyUI/models, you may have the following reasons:
- You have multiple ComfyUI instances and want them to share model files to save disk space
- You have different types of GUI programs (such as WebUI) and want them to use the same model files
- Model files cannot be recognized or found
extra_model_paths.yaml configuration file
Open Config File
- Portable/Manual Install
- ComfyUI Desktop
For the ComfyUI version such as portable and manual, you can find an example file named Copy and rename it to
extra_model_paths.yaml.example in the root directory of ComfyUI:extra_model_paths.yaml for use. Keep it in ComfyUI’s root directory at ComfyUI/extra_model_paths.yaml.
You can also find the config example file hereExample Structure
Suppose you want to add the following model paths to ComfyUI:extra_model_paths.yaml file like below to let ComfyUI recognize the model paths on your device:
D:\stable-diffusion-webui\, you can modify the corresponding configuration to