make the instructions for training clearer 🔨 Train Prerequisites Prepare the…
- User
make the instructions for training clearer
🔨 Train Prerequisites Prepare the environment as described in the installation section.
If you plan to train a LoRA model, install the PEFT library:
pip install peft Prepare your dataset in Huggingface format (Huggingface Datasets documentation). The dataset should contain the following fields:
keys: Unique identifier for each audio sample filename: Path to the audio file tags: List of descriptive tags (e.g., ["pop", "rock"]) norm_lyrics: Normalized lyrics text Optional fields: speaker_emb_path: Path to speaker embedding file (use empty string if not available) recaption: Additional tag descriptions in various formats Example dataset entry:
{ "keys": "1ce52937-cd1d-456f-967d-0f1072fcbb58", "filename": "data/audio/1ce52937-cd1d-456f-967d-0f1072fcbb58.wav", "tags": ["pop", "acoustic", "ballad", "romantic", "emotional"], "speaker_emb_path": "", "norm_lyrics": "I love you, I love you, I love you", "recaption": { "simplified": "pop", "expanded": "pop, acoustic, ballad, romantic, emotional", "descriptive": "The sound is soft and gentle, like a tender breeze on a quiet evening. It's soothing and full of longing.", "use_cases": "Suitable for background music in romantic films or during intimate moments.", "analysis": "pop, ballad, piano, guitar, slow tempo, romantic, emotional" } } How to get an audio's reception?
You can use Qwen-Omini https://chat.qwen.ai/ to describe an audio.
Here we share the prompt we used.
sys_prompt_without_tag = """Analyze the input audio and generate 6 description variants. Each variant must be <200 characters. Follow these exact definitions:
simplified: Use only one most representative tag from the valid set.expanded: Broaden valid tags to include related sub-genres/techniques.descriptive: Convert tags into a sensory-rich sentence based only on the sound. DO NOT transcribe or reference the lyrics.synonyms: Replace tags with equivalent terms (e.g., 'strings' → 'orchestral').use_cases: Suggest practical applications based on audio characteristics.analysis: Analyze the audio's genre, instruments, tempo, and mood based strictly on the audible musical elements. Technical breakdown in specified format.- For the
instrumentslist: Only include instruments that are actually heard playing in the audio recording. Explicitly ignore any instruments merely mentioned or sung about in the lyrics. Cover all audibly present instruments.
- For the
- Assistant
- User
give me a text visual of how the dataset should look for example if there was singing and instrumentals being trained
- Assistant
- User
give a visual of the dataset folder structure if it has instrumentals and singing
- Assistant
Certainly! Here's a clear text visual representation of how your dataset folder structure could look if it contains both instrumental and audio files, along with the dataset metadata files:
- User
do I have to train the singing ones on acapellas?
- Assistant
No, you do not have to train singing samples only on acapellas (i.e., vocals isolated from instruments). Both singing with accompanying instrumentals and pure acapella vocals can be used for training, depending on your goals:
Here’s some guidance:
- User
how are speaker embeddings made are they required?
- Assistant
- User
can I add my own custom genre?
- Assistant
Yes, you can definitely add your own custom genre tags to your dataset!
How to add custom genres
- The
tagsfield in your dataset entries is a list of descriptive tags and can include any genres, sub-genres, moods, or styles you want — including custom ones. - For example, if you want to add a custom genre called
"dreamwave", just include it in the list:
"tags": ["electronic", "dreamwave", "synthpop"]
Important notes:
- Make sure your custom genres are consistent across samples if you want the model to learn meaningful associations.
- The
- User
this is so confusing
- Assistant