Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-YuE2-Trainer > YuE2 Training Curve (loss/LR chart)

ComfyUI Node: YuE2 Training Curve (loss/LR chart)

Class Name

YuE2TrainingCurve

Category
YuE2/Training
Author
Starnodes2024 (Account age: 817days)
Extension
ComfyUI-YuE2-Trainer
Latest Updated
2026-09-16
Github Stars
0.05K

How to Install ComfyUI-YuE2-Trainer

Install this extension via the ComfyUI Manager by searching for ComfyUI-YuE2-Trainer
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-YuE2-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

YuE2 Training Curve (loss/LR chart) Description

Visualize LoRA model training progress with detailed loss and learning rate chart for monitoring and decision-making.

YuE2 Training Curve (loss/LR chart):

The YuE2TrainingCurve node is designed to visualize the training process of a LoRA (Low-Rank Adaptation) model by generating a detailed chart that displays the loss and learning rate over time. This visualization helps you understand how well the model is learning and adjusting during the training phase. By providing a graphical representation of the training metrics, the node allows you to monitor the progress and make informed decisions about the training process. The node is particularly useful for identifying trends, such as whether the model is converging or if adjustments to the learning rate are needed. It leverages the power of matplotlib to render these charts, ensuring that you have a clear and professional view of your model's training dynamics.

YuE2 Training Curve (loss/LR chart) Input Parameters:

training_log

The training_log parameter is a crucial input that contains the log data of the training process. This log includes information about the steps, losses, and learning rates recorded during training. The node uses this data to generate the training curve, providing insights into the model's performance over time. The quality and detail of the training log directly impact the accuracy and usefulness of the generated chart.

smooth

The smooth parameter determines whether the loss curve should be smoothed to provide a clearer view of the overall trend, rather than showing every fluctuation. Smoothing can help in identifying the general direction of the training process, making it easier to spot patterns and anomalies. This parameter is particularly useful when the raw data is noisy, as it helps in focusing on the broader trends.

show_raw

The show_raw parameter controls whether the raw, unsmoothed loss data should be displayed on the chart alongside the smoothed curve. Displaying the raw data can be beneficial for a detailed analysis, allowing you to see the exact fluctuations in loss values during training. This can be useful for diagnosing specific issues or understanding the impact of certain training steps.

show_lr

The show_lr parameter specifies whether the learning rate should be plotted on the chart. Including the learning rate in the visualization can provide valuable context, as it helps you understand how changes in the learning rate correlate with changes in the loss. This can be particularly useful for tuning the learning rate schedule and ensuring that the model is learning effectively.

YuE2 Training Curve (loss/LR chart) Output Parameters:

ui

The ui output parameter provides metadata about the generated chart, including the filename and location where the image is stored. This information is essential for accessing and viewing the chart, allowing you to easily locate and analyze the visualization after it has been created.

result

The result output parameter contains the chart image as a tensor, which can be used for further processing or integration into other workflows. This output is particularly useful if you need to perform additional analysis on the chart or incorporate it into a larger system for automated monitoring and reporting.

YuE2 Training Curve (loss/LR chart) Usage Tips:

  • Ensure that the training_log is comprehensive and accurately reflects the training process to get the most informative chart.
  • Use the smooth parameter to reduce noise in the loss curve, making it easier to identify overall trends and patterns.
  • Enable show_lr to gain insights into how the learning rate affects the training process, which can help in optimizing the learning rate schedule.

YuE2 Training Curve (loss/LR chart) Common Errors and Solutions:

ImportError: The YuE2 Training Curve node needs matplotlib

  • Explanation: This error occurs when the matplotlib library is not installed, which is required for rendering the training curve chart.
  • Solution: Install matplotlib by running the command python_embeded\python.exe -m pip install -r requirements.txt inside the ComfyUI-YuE2-Trainer directory.

ValueError: Sequence exceeds context

  • Explanation: This error indicates that the sequence length of the tokens exceeds the maximum allowed by the model's configuration.
  • Solution: Check the sequence length and ensure it does not exceed the max_position_embeddings specified in the model's configuration. Adjust the input data or model configuration as necessary.

YuE2 Training Curve (loss/LR chart) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-YuE2-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.

YuE2 Training Curve (loss/LR chart)