ComfyUI-FluxTrainer
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
SD3ModelSelect
ComfyUI Node Documentation: SD3ModelSelect
Overview
The SD3ModelSelect node is a component of the ComfyUI Flux Trainer, a tool that facilitates model training within the ComfyUI environment. This node is designed to streamline the process of selecting and organizing model components required for training tasks, specifically leveraging the capabilities provided by kohya's training scripts.
What This Node Does
The SD3ModelSelect node serves as a utility for selecting and organizing the required model components needed for SD3 model training. It provides users with a structured way to specify the paths to model checkpoints and other necessary files. This node consolidates these inputs into a format that can be readily used by subsequent nodes in a training workflow within the ComfyUI ecosystem.
Inputs
The node accepts the following inputs:
-
Required Inputs:
transformer: The path to the checkpoint file for the transformer model. This is a critical component of the SD3 model architecture.clip_l: The path to the local CLIP model checkpoint file. This is used for tasks related to text-to-image generation.clip_g: The path to the global CLIP model checkpoint file, also used in text-to-image tasks.t5: The path to the T5 model checkpoint file, which may be used for advanced text processing in the training context.
-
Optional Inputs:
lora_path: A string specifying the path to pre-trained LoRA network weights. This path allows users to load a custom LoRA model into their training workflow.
Outputs
The node produces the following output:
sd3_models: A package of paths and settings representing the selected SD3 model components. This structured output serves as an input for other nodes that perform model training, by encapsulating the necessary file paths and any optional LoRA configurations.
How to Use in ComfyUI Workflows
The SD3ModelSelect node is an integral part of creating workflows aimed at training SD3 models in ComfyUI. Here is a general usage scenario:
-
Setup the Node: Drag the
SD3ModelSelectnode onto the workflow canvas within ComfyUI. -
Configure Inputs: Use the interface to select or specify paths for the required and optional inputs. Make sure that the correct model files are selected to align with your training objectives.
-
Link with Other Nodes: Connect the output of this node (
sd3_models) to nodes likeInitSD3LoRATrainingthat require model configurations for training. This connection ensures that all the necessary model components are correctly referenced for the training process. -
Integrate in Training Workflows: The node serves as the starting point for building a robust training workflow. It ensures that all required components are selected and organized in a form that other nodes can utilize effectively.
Special Features or Considerations
-
Flexibility and Modularity: The node is designed to enhance modularity within ComfyUI, allowing users to replace or update model components with relative ease, facilitating experimentation with different configurations.
-
Optional LoRA Integration: With support for optional LoRA weights, the node provides flexibility in training scenarios where fine-tuning with a pre-trained LoRA model is desired, enabling advanced customization of training workflows.
-
Comprehensive Support: Although primarily structured for SD3 training, the node's design allows for extensibility, supporting potential future updates or additional model integrations as the underlying kohya's scripts evolve.
-
User-Friendly Interface: Even for users without extensive experience in training models, the node's user interface simplifies the process of selecting model components, enhancing accessibility within the ComfyUI platform.