Conversation
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update README with lego mode details
Move lego mode from Mar 10, 2026
--lego <track> CLI flag to "lego" JSON request field
ServeurpersoCom
approved these changes
Mar 10, 2026
lmangani
added a commit
that referenced
this pull request
Mar 10, 2026
* Add LEGO mode: generate instrumental stems over references (#19) * Add LEGO mode: --lego <track> flag for dit-vae, example files, README docs * Remove base model check from lego.sh Removed the echo statement for ensuring the base model. * Refactor lego.sh by removing echo statements Removed echo statements for steps in the script. * Implement error check for --lego with DiT model Add error handling for --lego option requiring base DiT model * Move lego mode from `--lego <track>` CLI flag to `"lego"` JSON request field (#21) * apply requested changes --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lego mode was configured via a CLI-only
--lego <track>flag, inconsistent with all other generation parameters which live in the request JSON. This PR moves the track name into the request JSON as"lego": "<track>", enabling batch processing, persistent configs, and parity withrepainting_start/repainting_end.Request struct (
src/request.h,src/request.cpp)std::string legofield (default"") toAceRequest"lego"is omitted from written JSON when empty (consistent with optional fields)CLI (
tools/dit-vae.cpp)--lego <track>option,lego_trackvariable, and CLI-level validation--src-audio, base model, valid track nameaudio_cover_strengthforced to1.0automatically when"lego"is setcaptionnow allowed when"lego"is non-emptyExamples
examples/lego.json: added"lego": "guitar","lyrics": "[Instrumental]", removed manualaudio_cover_strengthexamples/lego.sh: removed--lego guitarCLI flagREADME
"lego": ""to the JSON reference blockUsage:
{ "caption": "electric guitar riff, funk, house music, instrumental", "lyrics": "[Instrumental]", "lego": "guitar", "inference_steps": 50, "guidance_scale": 7.0, "shift": 1.0 }./build/dit-vae \ --src-audio backing-track.wav \ --request lego.json \ --text-encoder models/Qwen3-Embedding-0.6B-Q8_0.gguf \ --dit models/acestep-v15-base-Q8_0.gguf \ --vae models/vae-BF16.gguf \ --wav✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.