ComfyUI > Nodes > Realtime LoRA Trainer > Realtime LoRA Trainer (SD 1.5 - sd-scripts)

ComfyUI Node: Realtime LoRA Trainer (SD 1.5 - sd-scripts)

Class Name

SD15LoraTrainer

Category
loaders
Author
ShootTheSound (Account age: 1239days)
Extension
Realtime LoRA Trainer
Latest Updated
2025-12-23
Github Stars
0.28K

How to Install Realtime LoRA Trainer

Install this extension via the ComfyUI Manager by searching for Realtime LoRA Trainer
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Realtime LoRA Trainer in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Realtime LoRA Trainer (SD 1.5 - sd-scripts) Description

SD15LoraTrainer: Node for training LoRA models on Stable Diffusion 1.5 using kohya-ss/sd-scripts.

Realtime LoRA Trainer (SD 1.5 - sd-scripts):

The SD15LoraTrainer is a specialized node within the ComfyUI framework designed to facilitate the training of LoRA (Low-Rank Adaptation) models specifically for the Stable Diffusion 1.5 architecture. This node leverages the kohya-ss/sd-scripts to provide a streamlined and efficient training process, independent of the AI-Toolkit based trainer. Its primary function is to enable users to train custom LoRA models by configuring various training parameters, which can significantly enhance the performance and adaptability of AI models in generating high-quality images. The SD15LoraTrainer is particularly beneficial for AI artists and developers who wish to fine-tune their models with specific datasets, allowing for more personalized and contextually relevant outputs. By managing configurations and caching trained models, it ensures a smooth and efficient training experience, reducing redundant computations and saving valuable resources.

Realtime LoRA Trainer (SD 1.5 - sd-scripts) Input Parameters:

inputcount

This parameter specifies the number of input images to be used for training the LoRA model. It directly impacts the diversity and quality of the training data, which in turn affects the model's ability to generalize and produce high-quality outputs. There is no explicit minimum or maximum value provided, but it should be set according to the available dataset size and desired training complexity.

images_path

The images_path parameter indicates the directory path where the input images for training are stored. This path is crucial as it serves as the source of data that the model will learn from. Ensuring that the images are relevant and of high quality will significantly influence the training results.

sd_scripts_path

This parameter defines the path to the kohya-ss/sd-scripts, which are essential for executing the training process. The correct path ensures that the necessary scripts and dependencies are available for the node to function properly.

ckpt_name

The ckpt_name parameter specifies the name of the checkpoint file to be used during training. This file contains the pre-trained model weights that serve as the starting point for further training, allowing the model to build upon existing knowledge.

caption

The caption parameter provides descriptive text associated with the input images. This text is used to guide the training process, helping the model to learn the relationship between visual content and textual descriptions.

training_steps

This parameter determines the number of training iterations the model will undergo. More steps generally lead to better model performance, but they also require more computational resources and time. Users should balance these factors based on their specific needs.

learning_rate

The learning_rate is a critical hyperparameter that controls the speed at which the model learns. A higher learning rate can speed up training but may lead to instability, while a lower rate ensures more stable convergence but requires more time.

lora_rank

The lora_rank parameter defines the rank of the LoRA model, which affects the model's capacity and complexity. A higher rank allows for more complex representations but requires more computational resources.

vram_mode

This parameter specifies the mode of VRAM (Video RAM) usage during training. It helps manage memory consumption, which is crucial for training on devices with limited VRAM.

keep_lora

The keep_lora parameter is a boolean flag that determines whether the trained LoRA model should be cached for future use. Caching can save time and resources by reusing previously trained models.

output_name

This parameter sets the name for the output LoRA model. It helps in organizing and identifying different models, especially when multiple training sessions are conducted.

custom_python_exe

The custom_python_exe parameter allows users to specify a custom Python executable for running the training scripts. This can be useful if specific Python environments or versions are required.

image_1

This parameter represents an optional single image input for training. It can be used when a specific image needs to be emphasized during the training process.

Realtime LoRA Trainer (SD 1.5 - sd-scripts) Output Parameters:

cached_path

The cached_path output parameter provides the file path to the cached LoRA model if it exists. This path is crucial for reusing previously trained models, saving time and computational resources by avoiding redundant training processes.

Realtime LoRA Trainer (SD 1.5 - sd-scripts) Usage Tips:

  • Ensure that the images_path contains high-quality and relevant images to improve the training results and model performance.
  • Adjust the training_steps and learning_rate parameters to find a balance between training time and model accuracy. Experiment with different values to achieve optimal results.
  • Use the keep_lora parameter to cache models that you plan to reuse, which can significantly reduce training time for future sessions.
  • Consider the available VRAM when setting the vram_mode to prevent memory-related issues during training.

Realtime LoRA Trainer (SD 1.5 - sd-scripts) Common Errors and Solutions:

FileNotFoundError: [Errno 2] No such file or directory: 'sd_scripts_path'

  • Explanation: This error occurs when the specified path to the sd-scripts is incorrect or the files are missing.
  • Solution: Verify that the sd_scripts_path is correct and that all necessary scripts are present in the specified directory.

ValueError: Invalid learning rate

  • Explanation: This error indicates that the provided learning rate is not within an acceptable range or format.
  • Solution: Ensure that the learning_rate is a positive float value and adjust it to a reasonable range based on your training requirements.

MemoryError: Insufficient VRAM

  • Explanation: This error arises when the VRAM is insufficient to handle the current training configuration.
  • Solution: Reduce the batch_size or adjust the vram_mode to a more conservative setting to fit within the available VRAM limits.

Realtime LoRA Trainer (SD 1.5 - sd-scripts) Related Nodes

Go back to the extension to check out more related nodes.
Realtime LoRA Trainer
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.