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
TrainNetworkConfig
ComfyUI FluxTrainer: TrainNetworkConfig Node Documentation
Overview
The TrainNetworkConfig node is part of the ComfyUI FluxTrainer, an experimental wrapper for modified kohya's training scripts. This node is used to configure network training settings, specifically for different types of LoRA and LyCORIS models within the FluxTrainer.
Node Functionality
The TrainNetworkConfig node configures network training parameters that help determine the behavior and characteristics of the network being trained. It is crucial for setting up the type of network, its presets, and additional arguments that adjust specific behavioral aspects of the model during the training process.
Inputs
The TrainNetworkConfig node accepts the following inputs:
-
network_type: This specifies the type of network being configured. Available options include
"lora"and different types of LyCORIS models such as"LyCORIS/LoKr","LyCORIS/Locon", and"LyCORIS/LoHa". -
lycoris_preset: A preset configuration for LyCORIS networks, with options like
"full","full-lin","attn-mlp", or"attn-only". -
factor: An integer defining the LoKr factor, which, when specified, affects the model's operations during training. It can range from -1 to 16.
-
extra_network_args: This allows the user to input additional network arguments as a string. These arguments might include custom parameters that are required for advanced or specific use cases. They should be formatted properly and separated by pipes (|) if multiple arguments are given.
Outputs
The TrainNetworkConfig node produces the following outputs:
- network_config: This represents the configuration settings as interpreted by the node. It includes details about the specified network type and additional arguments provided. This configuration output is used by subsequent nodes for initiating and managing training workflows.
Usage in ComfyUI Workflows
In ComfyUI workflows, the TrainNetworkConfig node is typically used in conjunction with other nodes involved in the model training pipeline. By specifying the model type and using appropriate presets, the node sets up the necessary configuration that dictates how models like LoRA or LyCORIS are trained using the FluxTrainer.
A typical workflow involving this node might look like this:
- Model and Dataset Selection: Before using
TrainNetworkConfig, nodes may be used to specify which models and datasets are involved in the training session. - Configuration:
TrainNetworkConfigis used to specify the type of network and configure it with specific parameters. - Training Execution: After configuration, other nodes might take the output from
TrainNetworkConfigto execute the training session.
Special Features and Considerations
-
Versatility: This node supports configuring both standard LoRA models as well as more experimental LyCORIS variants, making it versatile for users interested in advanced model configurations.
-
Presets and Customization: With the ability to choose presets and add extra arguments, users can fine-tune their training network, offering a balance between ease of use and detailed custom configuration.
-
Experimental Nature: As the FluxTrainer is experimental, some features and parameters might change over time. Users should keep an eye on updates to the tool and the underlying Flux project.
Conclusion
The TrainNetworkConfig node is a powerful tool in ComfyUI FluxTrainer's suite, enabling users to configure network training setups effectively. With support for multiple model types, customizable presets, and the ability to add specific configurations, it is tailored for those looking to experiment with different model training techniques and configurations.