-
Notifications
You must be signed in to change notification settings - Fork 13
Lego mode for acestep-cpp #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ServeurpersoCom
merged 6 commits into
ServeurpersoCom:master
from
audiohacking:lego-mode
Mar 10, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fc318db
Add LEGO mode: generate instrumental stems over references (#19)
Copilot 715be9a
Remove base model check from lego.sh
lmangani f774da5
Refactor lego.sh by removing echo statements
lmangani 90c365a
Implement error check for --lego with DiT model
lmangani 2575f91
Merge branch 'ServeurpersoCom:master' into lego-mode
lmangani aaaa027
Move lego mode from `--lego <track>` CLI flag to `"lego"` JSON reques…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "caption": "", | ||
| "lyrics": "[Instrumental]", | ||
| "lego": "guitar", | ||
| "inference_steps": 50, | ||
| "guidance_scale": 7.0, | ||
| "shift": 1.0 | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/bin/bash | ||
| # Lego test: three-step self-contained pipeline. | ||
| # | ||
| # step zero: download the base DiT model if not already present | ||
| # (lego requires acestep-v15-base; turbo/sft do not support it) | ||
| # step one: generate a track from the simple prompt | ||
| # step two: apply lego guitar to that generated track | ||
|
|
||
| set -eu | ||
|
|
||
| # Step 1: generate a source track with the simple prompt | ||
| ../build/ace-qwen3 \ | ||
| --request simple.json \ | ||
| --model ../models/acestep-5Hz-lm-4B-Q8_0.gguf | ||
|
|
||
| ../build/dit-vae \ | ||
| --request simple0.json \ | ||
| --text-encoder ../models/Qwen3-Embedding-0.6B-Q8_0.gguf \ | ||
| --dit ../models/acestep-v15-turbo-Q8_0.gguf \ | ||
| --vae ../models/vae-BF16.gguf \ | ||
| --wav | ||
|
|
||
| # Step 2: lego guitar on the generated track (base model required) | ||
| ../build/dit-vae \ | ||
| --src-audio simple00.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 | ||
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.