Spaces:
Running on Zero
Running on Zero
Commit History
-
Fix ZeroGPU continuation: bound the lead-in, normalize the tail, shrink the GPU window
Three deployed bugs, all reproduced on the Blackwell GPU and fixed: 1. Near-silence / "only 5s of new audio". A long source (e.g. 100s) filled SA3's buffer and left only a tiny masked window, which the 8-step distilled sampler rendered as near-silence (rms 0.001). engine now conditions on at most MAX_LEAD_SECONDS (30s) of the clip's TAIL and masks [lead, lead+new], keeping the generated region substantial. The splice still rejoins the tail onto the full pristine original, so the listener hears the whole clip. Verified: 100s->120 now yields rms 0.15 (was 0.001). 2. Length/mask. With the whole source in the buffer, "total < source" floored to source+5s. With a bounded lead, new = total - source actually extends to the requested finished length (100s->120 generates +20s). 3. Stream abort (BodyStreamBuffer was aborted). enhance/fingerprint/decode ran INSIDE @spaces.GPU, burning the ZeroGPU window before generation started. Only the diffusion call is now wra…e033515
-
Rebuild CODA on Stable Audio 3 Small Music
Replace the MusicGen multi-pass chaining with SA3's native audio inpainting: one diffusion call continues the clip into a finished 44.1kHz stereo track, deleting the windowed passes, energy guards and re-roll logic entirely. - engine.py: SA3 continuation core. preload() to CPU at boot, fp16 on GPU inside the @spaces.GPU window; inpaint mask = [source_end, total]; source clip cast to model dtype; Windows-safe seed; over-long clips rejected so the mask can't invert. - stitch.py: stereo-native splice. Loudness-match, short equal-power crossfade at the seam, cos^2 closing fade, peak guard, all at 44.1k. - verify.py: dev-only math QA — duration, silence-collapse, clipping, seam/loudness/tempo/key continuity, spectral rolloff, stereo width, with a dark diagnostic plot. - app.py: dark "DAW console" UI. Total-length slider (30-120s), optional vibe prompt, instant on-upload analysis, staged progress, output player built visible. Over-long uploads blocked with a clear message. -…e8b2f06