English | 简体中文
LightMusic is a modular music restyling and singing voice conversion pipeline. Given a song, lyrics and a target vocal reference, it can generate a new arrangement with YuE2 or retain the original arrangement, convert the lead voice, and export aligned WAV/MP3 mixes. Backing vocals and instruments are preserved through the voice conversion stage.
The development branch is main. The project version remains v2.0; recent backend integrations are recorded under Unreleased in the changelog. LightMusic uses Seed-VC V1 for its Seed-VC routes; the project version does not identify the underlying model version.
Stage 05 has seven backends and nine routes. All inference routes use the existing envs/base interpreter. Training is an explicit, separate workflow.
| Backend / CLI value | Supported modes | Voice input | Guide |
|---|---|---|---|
Seed-VC V1 / seed_vc |
zero_shot, finetuned, lora |
Reference vocal; exported profile for trained modes | Zero-shot overview, fine-tuning, LoRA |
YingMusic-SVC / yingmusic_svc |
zero_shot |
Reference vocal | Integration |
SoulX-Singer-SVC / soulx_singer_svc |
zero_shot |
Reference vocal; SVC checkpoint | Integration |
Vevo2 FM-only / vevo2 |
zero_shot |
Reference vocal; FM-only checkpoint | Integration |
so-vits-svc / so_vits_svc |
finetuned |
Exported singer profile | Guide |
RVC / rvc |
finetuned |
Exported singer profile and index | Guide |
Fish Diffusion / fish_diffusion |
finetuned |
Exported singer profile | Guide |
YingMusic uses its official 100 steps, SoulX-Singer-SVC 32 steps / CFG 3, and Vevo2 32 steps / CFG 1. Seed-VC defaults to 30 steps. Generic --steps applies to Seed-VC; it does not override the other three presets. Stage 05 applies no additional transposition. See the zero-shot guide for native sample rates, reference handling and compatibility patches.
00 Prepare → 01 Transcribe → 02 Analyze range / choose transposition
├─ generated: 03 YuE2 arrangement → 04 Separate
└─ original: 04 Separate / transpose stems
04 Lead + backing vocals + instruments → 05 Convert lead → 06 Align and mix
→ 07 Separate review stems → 08 Transcribe final → 09 Stem MIDI
→ 10 Evaluate → 11 Package
Stage 04 averages the lead estimates from two Karaoke BS-RoFormer models. Stage 05 converts only the lead; stage 06 mixes it with the retained backing vocals and instruments. In original-arrangement mode, stage 03 is skipped. Use --transpose 0 to retain the original key; auto requests range-based transposition.
Stop at --until 06_mix for the first finished song. --no-review skips 07–09 but still runs 10–11. The standard outputs are converted.wav and conversion.json at 05, final.wav, final.mp3 and mix.json at 06, and a checked deliverables/ package at 11.
git clone --branch main https://github.com/ModelTC/LightMusic.git
cd LightMusic
git submodule update --init third_party/YuE third_party/seed-vc
python3 scripts/setup/apply_seed_vc_lora.pyInitialize additional submodules only for the routes you need. The zero-shot setup guide covers YingMusic, SoulX and Vevo2; the trained-voice guides cover SVC, RVC and Fish.
Before running, provision the project-local environments, audio tools and selected model assets using the environment guide, deployment instructions and asset setup commands. The validated GPU stack uses Python 3.11, Torch/Torchaudio 2.8.0 with CUDA 12.8, and Transformers 4.57.3 on H100. This is deployment evidence, not a minimum GPU requirement or a tested one-command installation on a clean machine. Historical *.installed.txt files are environment evidence, not portable pip requirements.
YingMusic and SoulX reuse the installed base packages. Vevo2 adds pinned optional packages in third_party/vevo2_runtime, loaded only by its backend process. Compatibility adapters do not modify global Transformers or require a new environment. Weights, recordings, environments, caches and generated audio are excluded from Git.
Run from the repository root. For original-arrangement conversion, copy the portable template and supply your song, UTF-8 lyrics and target reference:
source scripts/environment.sh
mkdir -p configs/local
cp -n configs/examples/cover_original.yaml configs/local/my_cover.yaml
# Edit my_cover.yaml: supply real input files and a valid reference window.
bash scripts/run_baseline.sh --config configs/local/my_cover.yaml \
--voice-backend vevo2 --voice-mode zero_shot --until 06_mix --preflight
bash scripts/run_baseline.sh --config configs/local/my_cover.yaml \
--run runs/my_cover_v001 --voice-backend vevo2 --voice-mode zero_shot \
--until 06_mix --gpu 0Use configs/examples/cover.yaml for YuE2 arrangement generation. Choose another backend using the table above; prepare that backend's assets first. The shared controller currently requires a lyrics file in both arrangement modes. Select a 1–25 second target vocal window with reference_start and reference_duration.
The first mix is written to runs/my_cover_v001/stages/06_mix/attempt_001/artifacts/final.mp3. After reruns, locate the active successful attempt in stage_state.json. To continue from the mix through evaluation and delivery:
bash scripts/run_baseline.sh --run runs/my_cover_v001 --from 10_evaluation --no-review --gpu 0To compare models on an existing arrangement, fork verified 00–04 artifacts, then run a new 05. A fork retains the original reference and depends on its source run. Create a new task from 00 when changing the target reference.
The current integrated tree passed 335 CPU tests, real Vevo2 full-song inference and 05→06→10→11 acceptance on 2026-11-30. Validation history separates measured GPU results from CPU checks and includes the controlled four-model ECAPA/F0 comparison. These are single-song diagnostics, not general model rankings or listening scores.
| Task | Documentation |
|---|---|
| Choose and deploy a zero-shot backend | English overview |
| Run stages, select an arrangement, resume or fork | Usage, architecture, contracts |
| Train and export a voice | Seed-VC fine-tuning, LoRA manual, backend guides above |
| Evaluate and deliver | Metric definitions, delivery, validation evidence |
| Prepare source for GitHub | Contributing, repository boundaries |
| Browse current and historical guides | Documentation index, deployment skill |
Detailed operational guides are mainly in Chinese. README.md and the shared zero-shot overview provide the English entry points. Automated metrics support diagnosis; lyrics, perceived voice and musical quality still need listening review.