ComfyUI-InstantID
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
IDBaseModelLoader_local
📷 ID Base Model Loader Locally Node Documentation
Overview
The "ID Base Model Loader Locally" node is a component of the ComfyUI-InstantID system, an unofficial implementation of the InstantID project. This specific node is designed to facilitate the loading of local base models necessary for the operation of the InstantID processing pipeline. This node enables users to load Stable Diffusion XL models stored locally on their system, which can be used for generating images from reference inputs.
Functionality
The primary purpose of the "ID Base Model Loader Locally" node is to initialize and prepare a base model for use within a ComfyUI workflow. By supporting local models, the node allows users to leverage their already downloaded models for various creative and technical applications.
Inputs
The "ID Base Model Loader Locally" node accepts the following inputs:
-
ckpt_name: This input requires the name of the checkpoint file you wish to load. It utilizes the file system to locate and load the model specified by this checkpoint.
-
controlnet: This input requires a control network model that serves as a modifier for the base model. It adjusts the generated content based on its embedded parameters.
Outputs
The outputs produced by this node include:
- pipe: The primary output of the node is a loaded and initialized model pipeline, which is ready to be used in the subsequent steps of a ComfyUI workflow. The pipeline is configured with the base model and the provided control network.
Usage in ComfyUI Workflows
In a typical ComfyUI workflow, this node acts as a foundational element that loads and prepares the necessary model resources. Once the "ID Base Model Loader Locally" node outputs the model pipeline, it can be connected to other nodes that utilize this pipeline for image generation and processing tasks. This node is essential for any workflow requiring custom or locally stored model files.
Example Workflow
-
Initialization: Use the "ID Base Model Loader Locally" node to load your desired local model and control network.
-
Processing: Connect the output from this node to various other processing nodes such as image stylization, face recognition, or control network adjustments.
-
Generation: Implement the configured pipeline in a generation node to create images based on given prompts and settings.
Special Features and Considerations
-
Local Model Support: One of the key benefits of this node is its ability to work with models stored locally, which can be advantageous for privacy, speed, and bandwidth considerations.
-
Compatibility: The node is compatible with models from the Stable Diffusion XL series, making it highly versatile for various image processing tasks.
-
Error Handling: The node requires valid inputs for both checkpoint names and control network models. If these are not correctly specified, the node will raise errors indicating missing or incorrect parameters.
-
Device Optimization: The node operates on either CUDA or CPU, depending on the available hardware, thereby optimizing processing speed and efficiency in different environments.
Conclusion
The "ID Base Model Loader Locally" node is an essential component of workflows leveraging the InstantID framework within ComfyUI. By enabling local model loading, it provides flexibility and control in the creative image generation process.