← Open Source
feizc

FluxMusic

Text-to-Music Generation with Rectified Flow Transformers.

ModelsAudio/Speech modelsPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.71k
Stars
128
Forks
+1
This week
2
Contributors
Created 2024-08-06 · Updated 2026-10-10 · #9636 today
Top developers

feizc/FluxMusic is ranked 9,636 with 1,709 stars.

Same-category comparison

feizc/FluxMusic is ranked 9,636 among these 8 peers; lukalabs/cakechat is ranked 9,640.

Same-category comparison
NameRankMetrics
svip-lab/impersonator9,617
Language:
Python
Stars:
1,719
Forks:
304
Description:
PyTorch implementation of our ICCV 2019 paper: Liquid Warping GAN: A Unified Framework for Human Motion Imitation, Appearance Transfer and Novel View Synthesis.
allenai/scibert9,619
Language:
Python
Stars:
1,717
Forks:
231
Description:
A BERT model for scientific text.
One-2-3-45/One-2-3-459,620
Language:
Python
Stars:
1,716
Forks:
103
Description:
[NeurIPS 2023] Official code of "One-2-3-45: Any Single Image to 3D Mesh in 45 Seconds without Per-Shape Optimization".
aiff22/DPED9,629
Language:
Python
Stars:
1,711
Forks:
364
Description:
Software and pre-trained models for automatic photo quality enhancement using Deep Convolutional Networks.
lukalabs/cakechat9,640
Language:
Python
Stars:
1,708
Forks:
911
Description:
CakeChat: Emotional Generative Dialog System.
imcaspar/gpt2-ml9,651
Language:
Python
Stars:
1,703
Forks:
325
Description:
GPT2 for Multiple Languages, including pretrained models.
XueFuzhao/OpenMoE9,657
Language:
Python
Stars:
1,702
Forks:
85
Description:
A family of open-sourced Mixture-of-Experts (MoE) Large Language Models.
microsoft/i-Code9,662
Language:
Jupyter Notebook
Stars:
1,700
Forks:
165
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModels
SubcategoryAudio/Speech models
KeywordsDistributed training, Model architecture, Multimodal, Music
Stars1,709
Forks128
Contributors2
Created date2024-08-06
Updated date2026-10-10
Stars in 1 day0
Stars in 7 days1
Rank9,636
Previous rank9,675
Rank change39
7-day stars rank9,656
Previous 7-day stars rank9,713
7-day stars rank change57
Total stars rank7,245
Previous total stars rank7,239
Total stars rank change-6
CountryChina
README summary

FluxMusic: Text-to-Music Generation with Rectified Flow Transformer Official PyTorch Implementation This repo contains PyTorch model definitions, pre-trained weights, and training/sampling code for paper *Flux that plays music*. It explores a simple extension of diffusion-based rectified flow Transformers for text-to-music generation. The model architecture can be seen as follows: To-do list [x] training / inference scripts [x] clean code [x] all ckpts and part of dataset 1. Training You can refer to the link

to build the running environment. To launch small version in the latent space training with GPUs on one node with pytorch DDP: More scripts of different model size can reference to file direction. Inference We include a script which samples music clips according to conditions from a MusicFlux model as: All prompts used in paper are lists in . Download Ckpts and Data We use VAE and Vocoder in AudioLDM2, CLAP-L, and T5-XXL. You can download in the following

table directly, we also provide the training scripts in our experiments. Note that in actual experiments, a restart experiment was performed due to machine malfunction, so there will be resume options in some scripts. The full version of main results will be released right way. The construction of training data can refer to the file, showing a simple build of combing differnet datasets in json file. Considering copyright issues, the data used in the paper needs to be downloaded by

oneself. A quick download link for other datasets can be found in Huggingface : ). This is a research project, and it is recommended to try advanced products: Acknowledgments The codebase is based on the awesome Flux and AudioLDM2 repos.

Frequently asked questions

How many stars and forks are recorded?

feizc/FluxMusic has 1,709 stars and 128 forks.

What is the repository rank?

feizc/FluxMusic is ranked 9,636.

What language and category are recorded?

feizc/FluxMusic has 1,709 stars, uses Python and belongs to Models.

Which repository is closest in rank?

feizc/FluxMusic is compared with lukalabs/cakechat, ranked 9,640 with 1,708 stars.

README

FluxMusic: Text-to-Music Generation with Rectified Flow Transformer

Official PyTorch Implementation

       

This repo contains PyTorch model definitions, pre-trained weights, and training/sampling code for paper Flux that plays music. It explores a simple extension of diffusion-based rectified flow Transformers for text-to-music generation. The model architecture can be seen as follows:

To-do list

  • [x] training / inference scripts
  • [x] clean code
  • [x] all ckpts and part of dataset

1. Training

You can refer to the link to build the running environment.

To launch small version in the latent space training with N GPUs on one node with pytorch DDP:

torchrun --nnodes=1 --nproc_per_node=N train.py \
--version small \
--data-path xxx \
--global_batch_size 128

More scripts of different model size can reference to scripts file direction.

2. Inference

We include a sample.py script which samples music clips according to conditions from a MusicFlux model as:

python sample.py \
--version small \
--ckpt_path /path/to/model \
--prompt_file config/example.txt

All prompts used in paper are lists in config/example.txt.

3. Download Ckpts and Data

We use VAE and Vocoder in AudioLDM2, CLAP-L, and T5-XXL. You can download in the following table directly, we also provide the training scripts in our experiments.

Note that in actual experiments, a restart experiment was performed due to machine malfunction, so there will be resume options in some scripts.

Model Training steps Url Training scripts
VAE - link -
Vocoder - link -
T5-XXL - link -
CLAP-L - link -
FluxMusic-Small 200K link link
FluxMusic-Base 200K link link
FluxMusic-Large 200K link link
FluxMusic-Giant 200K link link
FluxMusic-Giant-Full 2M link -

Note that 200K-steps ckpts are trained on a sub-training set and used for ploted the scaling experiments as well as case studies in the paper. The full version of main results will be released right way.

The construction of training data can refer to the test.py file, showing a simple build of combing differnet datasets in json file.

Considering copyright issues, the data used in the paper needs to be downloaded by oneself.

We provide a clean subset in:  

A quick download link for other datasets can be found in Huggingface : ).

This is a research project, and it is recommended to try advanced products:  

Acknowledgments

The codebase is based on the awesome Flux and AudioLDM2 repos.

Nearby in the ranking
Similar items