FLUX that Plays Music

Zhengcong Fei, Mingyuan Fan, Changqian Yu, Junshi Huang
9/1/2024
cs.SDcs.CVeess.AS

Official code: black-forest-labs/flux (26,007 stars, Apache-2.0, last commit 2025-07-31). 1 more implementation below.

Abstract

This paper explores a simple extension of diffusion-based rectified flow Transformers for text-to-music generation, termed as FluxMusic. Generally, along with design in advanced Flux\footnote{https://github.com/black-forest-labs/flux} model, we transfers it into a latent VAE space of mel-spectrum. It involves first applying a sequence of independent attention to the double text-music stream, followed by a stacked single music stream for denoised patch prediction. We employ multiple pre-trained text encoders to sufficiently capture caption semantic information as well as inference flexibility. In between, coarse textual information, in conjunction with time step embeddings, is utilized in a modulation mechanism, while fine-grained textual details are concatenated with the music patch sequence as inputs. Through an in-depth study, we demonstrate that rectified flow training with an optimized architecture significantly outperforms established diffusion methods for the text-to-music task, as evidenced by various automatic metrics and human preference evaluations. Our experimental data, code, and model weights are made publicly available at: \url{https://github.com/feizc/FluxMusic}.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Official inference repo for FLUX.1 models

26,0071,926PythonAug 1, 20241 years agoApache-2.0
feizc/FluxMusicOfficial100%

Text-to-Music Generation with Rectified Flow Transformers

1,712128Shell, PythonAug 6, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{fei2024flux,
  title  = {FLUX that Plays Music},
  author = {Zhengcong Fei and Mingyuan Fan and Changqian Yu and Junshi Huang},
  year   = {2024},
  eprint = {2409.00587},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.00587v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.00587.svg)](https://codeofpaper.com/paper/2409.00587)

Discussion