Views
No views yet
config.json (architecture) + model.safetensors (fp32 weights)pip install "stftvae[cli]"1import torch
2from stftvae import STFTVAE
3
4vae = STFTVAE.from_pretrained("fluxions/stftvae", device="cuda")
5
6audio = torch.randn(1, 24000) # (1, T) mono @ 24 kHz
7recons = vae.reconstruct(audio) # (1, 1, T)
8
9# or encode / decode separately
10latent, length = vae.encode(audio) # (1, 128, T_latent)
11recons = vae.decode(latent, length=length)python -m stftvae input.wav output.wav --model fluxions/stftvae