Skip to content

benjxia/LDMG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LDMG - Latent Diffusion for (Continuous Domain) Music Generation

CSE 153/253 Spring 2025

Environment Setup

Installing Conda

Follow the instructions here.

Installing dependencies

conda env create --file=environment.yml

This will create a local conda environment named "ldmg".

Run the following to activate the conda environment.

conda activate ldmg

Dataset Setup for Training

wget https://os.unil.cloud.switch.ch/fma/fma_medium.zip

unzip fma_medium.zip

Running our code

Training the VAE-GAN

This will also create an additional directory lightning_logs

python train.py --mode=VAE --checkpoint=<path_to_checkpoint> --data_path=<path_to_data>

Training an unconditioned Latent Diffusion Model

python train.py --mode=LDM --vae_checkpoint=<path_to_vae_checkpoint> --checkpoint=<path_to_checkpoint> --data_path=<path_to_data>

Open Tensorboard dashboard (Only run after the directory has been created)

tensorboard --logdir lightning_logs/

About

Latent Diffusion for (Continuous Domain) Music Generation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors