From 17b9adf29cbcdd4c4a4417232f8e8a64e512296a Mon Sep 17 00:00:00 2001 From: Vuong Hoang Date: Sun, 10 May 2026 18:13:27 -0700 Subject: [PATCH] sao: actually pass cfg_scale through to the pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit server.py accepted cfg_scale in the request schema and the README documented its 0–20 range, but the pipeline call never received it — so changing cfg_scale between requests silently produced identical output (the pipeline ran at its own default of 7.0 every time). Add guidance_scale=req.cfg_scale to the pipe(...) call. Verified: (prompt, seed, steps) held constant, cfg_scale=3.0 vs 15.0 now produce different SHA256s; same triple at cfg_scale=7.0 is deterministic across repeated calls. --- stacks/stable-audio-open/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stacks/stable-audio-open/server.py b/stacks/stable-audio-open/server.py index 3c24955..7c24c4e 100644 --- a/stacks/stable-audio-open/server.py +++ b/stacks/stable-audio-open/server.py @@ -70,6 +70,7 @@ def sfx(req: SfxRequest): num_inference_steps=req.steps, audio_end_in_s=req.duration, num_waveforms_per_prompt=1, + guidance_scale=req.cfg_scale, generator=generator, ).audios