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 Dataset (audio folder)

ComfyUI Node: YuE2 Training Dataset (audio folder)

Class Name

YuE2TrainingDataset

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 Dataset (audio folder) Description

Facilitates LoRA model training by caching VAE latents from audio folders in YuE2 context.

YuE2 Training Dataset (audio folder):

The YuE2TrainingDataset node is designed to facilitate the training of LoRA models by scanning an audio folder and caching VAE latents. This node is part of the YuE2/Training category and is specifically tailored for handling datasets in the context of YuE2's LoRA training. It leverages the VAE (Variational Autoencoder) from the native checkpoint to process and prepare the data, ensuring that the training process is efficient and streamlined. By caching VAE latents, it reduces the computational load during training, allowing for faster and more effective model development. This node is particularly beneficial for users looking to train models on audio data, as it simplifies the data preparation process and integrates seamlessly with the YuE2 training framework.

YuE2 Training Dataset (audio folder) Input Parameters:

folder

The folder parameter specifies the directory path where the audio files are stored. This is the primary source of data for the training process. The node scans this folder to gather all necessary audio files, which are then processed to extract VAE latents. It is crucial to ensure that the folder contains the correct audio files in a supported format to avoid errors during dataset building.

cache_dir

The cache_dir parameter indicates the directory where the VAE latents will be cached. Caching is an essential step as it allows for quicker access to the processed data during training, significantly reducing the time required for each training iteration. Ensure that the specified directory has sufficient storage space to accommodate the cached data.

clip_seconds

The clip_seconds parameter defines the duration of audio clips to be used from each file. This parameter is important for standardizing the input data, as it ensures that all audio clips are of uniform length, which can improve the consistency and performance of the training process. The value should be chosen based on the specific requirements of the model being trained.

caption_mode

The caption_mode parameter determines how captions are handled during the dataset preparation. Captions can provide additional context or labels for the audio data, which can be useful for certain types of training tasks. The mode selected will affect how captions are integrated into the dataset, so it should be chosen based on the specific needs of the training objective.

default_caption

The default_caption parameter provides a fallback caption to be used when no specific caption is available for an audio file. This ensures that all audio data has some form of labeling, which can be important for supervised learning tasks. The default caption should be relevant to the overall dataset to maintain consistency.

device

The device parameter specifies the computational device to be used for processing, such as a CPU or GPU. Selecting the appropriate device can significantly impact the speed and efficiency of the dataset preparation process. For optimal performance, it is recommended to use a GPU if available.

progress_cb

The progress_cb parameter is a callback function that provides updates on the progress of the dataset building process. This can be useful for monitoring the status of the operation and ensuring that it is proceeding as expected. Implementing a progress callback can help in identifying any potential issues early in the process.

YuE2 Training Dataset (audio folder) Output Parameters:

dataset

The dataset output parameter represents the processed dataset that is ready for training. It includes the audio data along with the cached VAE latents, making it optimized for use in the YuE2 LoRA training process. This dataset is crucial for initiating and conducting the training of models, as it contains all the necessary pre-processed information.

summary

The summary output parameter provides a concise overview of the dataset that has been built. This includes details such as the number of audio files processed, the total duration of audio data, and any other relevant statistics. The summary is useful for verifying that the dataset has been constructed correctly and meets the expected criteria.

YuE2 Training Dataset (audio folder) Usage Tips:

  • Ensure that the audio files in the specified folder are in a supported format to avoid processing errors.
  • Use a GPU for the device parameter to significantly speed up the dataset preparation process.
  • Regularly check the summary output to verify that the dataset has been built correctly and contains the expected data.

YuE2 Training Dataset (audio folder) Common Errors and Solutions:

"No audio files found in the specified folder"

  • Explanation: This error occurs when the node cannot locate any audio files in the provided directory path.
  • Solution: Verify that the folder parameter is set to the correct path and that the directory contains audio files in a supported format.

"Insufficient storage space in cache directory"

  • Explanation: This error indicates that there is not enough space in the specified cache_dir to store the VAE latents.
  • Solution: Ensure that the cache_dir has sufficient storage capacity or choose a different directory with more available space.

"Invalid device specified"

  • Explanation: This error arises when the device parameter is set to a non-existent or unsupported computational device.
  • Solution: Check that the specified device is available and correctly configured on your system. If using a GPU, ensure that the necessary drivers and libraries are installed.

YuE2 Training Dataset (audio folder) 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 Dataset (audio folder)