10 Commits
Author SHA1 Message Date
Leonid PershinandClaude Opus 5 0584397884 fix: write and read audio with soundfile instead of torchaudio
torchaudio 2.11 routes torchaudio.save()/load() through TorchCodec and
ignores the `backend` argument, so every generation died at the save
step with "ImportError: TorchCodec is required for save_with_torchcodec"
after the diffusion had already finished. Reference-audio loading
(audio2audio, repaint, extend) and the training dataset loader hit the
same wall.

soundfile is already a required dependency and covers all four output
formats the UI offers, so use it directly rather than pulling in
TorchCodec and its native FFmpeg stack:

- pipeline_ace_step.save_wav_file(): sf.write(), transposing
  (channels, samples) -> (samples, channels); drops the now-unused
  torchaudio import
- MusicDCAE.load_audio() and text2music_dataset: sf.read(dtype=float32,
  always_2d=True), transposed back to (channels, samples)

torchaudio is still used for Resample/MelScale transforms, which are
unaffected.

Verified end to end: 10s generation on an RTX 3060 in 9.7s, output is
valid non-silent 48kHz stereo; load_audio round-trips it; wav/mp3/ogg/
flac all write and read back.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 19:03:29 +03:00
Gong Junmin 47669c2375 fix decode_overlap_shorter 2025-05-11 15:04:40 +08:00
Gong Junmin b86a71088c fix mono input 2025-05-10 21:37:38 +08:00
xushengyuan 653f246df5 gui add cmdline args 2025-05-09 23:46:41 +08:00
xushengyuan f23b7b34e3 add vram optimization cmdline args 2025-05-09 22:47:41 +08:00
xushengyuan 56ae032172 overlapped dcae & vocoder 2025-05-09 22:26:12 +08:00
xushengyuan 054f599ebd int4 weight only quantized model using torchao 2025-05-09 20:27:25 +08:00
mrfakename afa0332e8c switch -> git+ url 2025-05-06 20:19:51 -07:00
mrfakename a5746eaab6 work on pip package 2025-05-06 18:59:32 -07:00
mrfakename 54da683d36 work on pip package 2025-05-06 18:59:28 -07:00