- A Pytorch implementation of MuseGAN
- Note : Only linux BSD support due to SharedArray usage which is a linux only pip package
MuseGAN is a generative model which allows to generate music.
The musegan package contains all the schema needed to train and generate your own music in MIDI format. There are two ways of using the musegan package;
-
Using the PYPI package.
- To use it use the command:
pip install musegan
to install all the necessary packages
- To use it use the command:
-
Building from the source
- First clone the repository to your local directory with
git
- Open your local Terminal/Command Shell and run the following commands
cd musegan-pytorch # change directory to the cloned repository #use any of the following some will work dependent on your operating system #try python3 setup.py develop #or pip install . #or pip install -e
- To test run the following in your python terminal;
>> import musegan >> print(musegan__version__) # which should return the latest musegan version according to the time you read this 0.0.9
Now you should be able to use zthe musegan packages
- First clone the repository to your local directory with
See this colab notebook for more details of training process.
- The model components and utils are under
musegan/archs
folder. - The Midi
torch.utils.dataset
is undermusegan/dataset/data_utils.py
. - The training Functions and criterions can be found in the
musegan/trainner
folder
This project is licensed under MIT.