✨
TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching and Clap-Ranked Preference Optimization
✨✨✨
Model Overview
TangoFlux consists of FluxTransformer blocks which are Diffusion Transformer (DiT) and Multimodal Diffusion Transformer (MMDiT), conditioned on textual prompt and duration embedding to generate audio at 44.1kHz up to 30 seconds. TangoFlux learns a rectified flow trajectory from audio latent representation encoded by a variational autoencoder (VAE). The TangoFlux training pipeline consists of three stages: pre-training, fine-tuning, and preference optimization. TangoFlux is aligned via CRPO which iteratively generates new synthetic data and constructs preference pairs to perform preference optimization.
Download TangoFlux from our github
https://github.com/declare-lab/TangoFlux
The model will be automatically downloaded and saved in cache. Subsequent runs will load the model directly from cache.
The generate function uses 25 steps by default to sample from the flow model. We recommend using 50 steps for generating better quality audios. This comes at the cost of increased run-time.
import torchaudio
from tangoflux import TangoFluxInference
from IPython.display import Audio
model = TangoFluxInference(name='declare-lab/TangoFlux-base')
audio = model.generate('Hammer slowly hitting the wooden table', steps=50, duration=10)
Audio(data=audio, rate=44100)
@misc{hung2024tangofluxsuperfastfaithful,
title={TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching and Clap-Ranked Preference Optimization},
author={Chia-Yu Hung and Navonil Majumder and Zhifeng Kong and Ambuj Mehrish and Rafael Valle and Bryan Catanzaro and Soujanya Poria},
year={2024},
eprint={2412.21037},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/2412.21037},
}
Runs of declare-lab TangoFlux-base on huggingface.co
26
Total runs
1
24-hour runs
0
3-day runs
-1
7-day runs
6
30-day runs
More Information About TangoFlux-base huggingface.co Model
TangoFlux-base huggingface.co is an AI model on huggingface.co that provides TangoFlux-base's model effect (), which can be used instantly with this declare-lab TangoFlux-base model. huggingface.co supports a free trial of the TangoFlux-base model, and also provides paid use of the TangoFlux-base. Support call TangoFlux-base model through api, including Node.js, Python, http.
TangoFlux-base huggingface.co is an online trial and call api platform, which integrates TangoFlux-base's modeling effects, including api services, and provides a free online trial of TangoFlux-base, you can try TangoFlux-base online for free by clicking the link below.
declare-lab TangoFlux-base online free url in huggingface.co:
TangoFlux-base is an open source model from GitHub that offers a free installation service, and any user can find TangoFlux-base on GitHub to install. At the same time, huggingface.co provides the effect of TangoFlux-base install, users can directly use TangoFlux-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.