Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates advanced settings for KohyaSS training framework in ComfyUI, optimizing training efficiency and customization.
FL_KohyaSSAdvConfig is a configuration node designed to facilitate advanced settings for the KohyaSS training framework within the ComfyUI environment. This node allows you to fine-tune various parameters that control the behavior and performance of the training process, providing a high degree of customization to meet specific needs. By leveraging this node, you can optimize training efficiency, manage resource usage, and tailor the training process to different types of neural networks and datasets. The primary goal of FL_KohyaSSAdvConfig is to offer a flexible and user-friendly interface for configuring complex training settings, making it easier for AI artists to achieve their desired outcomes without needing deep technical expertise.
This parameter allows you to enable or disable the use of xformers, which can optimize memory usage and speed during training. Options are enable
and disable
, with the default being enable
.
This parameter controls the use of Scaled Dot-Product Attention (SDPA). Options are enable
and disable
, with the default being disable
.
This parameter enables or disables the use of FP8 base precision, which can affect the precision and performance of the training. Options are enable
and disable
, with the default being disable
.
This parameter sets the type of mixed precision to be used during training. Options are no
, fp16
, and bf16
, with the default being fp16
.
This parameter specifies the number of steps to accumulate gradients before performing a backward/update pass. It accepts an integer value, with the default being 1.
This parameter enables or disables gradient checkpointing, which can save memory at the cost of additional computation. Options are enable
and disable
, with the default being disable
.
This parameter controls whether to cache latents in memory. Options are enable
and disable
, with the default being enable
.
This parameter controls whether to cache latents to disk. Options are enable
and disable
, with the default being enable
.
This parameter sets the dimension of the network. It accepts an integer value, with the default being 16.
This parameter sets the alpha value for the network. It accepts an integer value, with the default being 8.
This parameter specifies the network module to be used. Options are networks.lora
, networks.dylora
, and networks.oft
, with the default being networks.lora
.
This parameter controls whether to train only the U-Net part of the network. Options are enable
and disable
, with the default being enable
.
This parameter sets the learning rate scheduler type. Options are linear
, cosine
, cosine_with_restarts
, polynomial
, constant
, constant_with_warmup
, and adafactor
, with the default being cosine
.
This parameter specifies the number of cycles for the learning rate scheduler. It accepts an integer value, with the default being 1.
This parameter sets the type of optimizer to be used. Options are AdamW
, AdamW8bit
, PagedAdamW
, PagedAdamW8bit
, PagedAdamW32bit
, Lion8bit
, PagedLion8bit
, Lion
, SGDNesterov
, SGDNesterov8bit
, DAdaptation
, DAdaptAdaGrad
, DAdaptAdam
, DAdaptAdan
, DAdaptAdanIP
, DAdaptLion
, DAdaptSGD
, and AdaFactor
, with the default being AdamW
.
This parameter specifies the number of warmup steps for the learning rate. It accepts an integer value, with the default being 0.
This parameter sets the learning rate for the U-Net. It accepts a string value, with the default being an empty string.
This parameter sets the learning rate for the text encoder. It accepts a string value, with the default being an empty string.
This parameter controls whether to shuffle captions during training. Options are enable
and disable
, with the default being disable
.
This parameter sets the precision for saving models. Options are float
, fp16
, and bf16
, with the default being fp16
.
This parameter enables or disables persistent data loader workers. Options are enable
and disable
, with the default being enable
.
This parameter controls whether to save metadata. Options are enable
and disable
, with the default being enable
.
This parameter sets the noise offset value. It accepts a float value, with the default being 0.1.
This parameter enables or disables the use of half-precision for the VAE. Options are enable
and disable
, with the default being enable
.
This parameter enables or disables low RAM mode, which can reduce memory usage at the cost of performance. Options are enable
and disable
, with the default being disable
.
The output parameter config
provides the final configuration settings after applying all the specified input parameters. This configuration is used to control the training process, ensuring that all the specified settings are applied correctly.
xformers
to optimize memory usage and speed during training, especially for large models.gradient_accumulation_steps
to manage memory usage by accumulating gradients over multiple steps before updating.mixed_precision
to fp16
for a good balance between performance and precision.cache_latents
to speed up training by caching intermediate results in memory.optimizer_type
based on your specific training needs and model requirements.lowram
mode, or increase the available memory.unet_lr
and text_encoder_lr
are set to valid numeric values.network_module
parameter is set to one of the supported options.© Copyright 2024 RunComfy. All Rights Reserved.