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
deviceparameter to significantly speed up the dataset preparation process. - Regularly check the
summaryoutput 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
folderparameter 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_dirto store the VAE latents. - Solution: Ensure that the
cache_dirhas sufficient storage capacity or choose a different directory with more available space.
"Invalid device specified"
- Explanation: This error arises when the
deviceparameter 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.
