Spaces:
Running on Zero
Running on Zero
Commit History
-
Harden best-of-N selection: reject dropouts and squashed takes
The selection metric only scored loud-bursts and whole-tail silence, so two failure modes that sound bad to a listener slipped through as clean: - a brief mid-tail near-silent dropout (overall RMS stays high and max/median stays low, so neither existing term fires) - an audible cut-out; - dynamics/transient collapse - a perfectly tonal but squashed, attack-less wash that low-flatness and loudness checks all green-light. Add a sustained-dropout term and a crest-factor (peak/RMS) floor to the score, raise the candidate pool to 5 and tighten early-accept to 3.5 so best-of-N keeps searching past a merely-okay draw for a genuinely good one. Generation is unchanged; only which draw is selected. Adds unit tests for all four failure modes plus the natural-ending-taper false-positive guard.1cca94c