This is the code for this video on Youtube by Siraj Raval as part of the Deep Learning Nanodegree course with Udacity. We're going to use an encoder-decoder model to generate a MIDI sequence given an input sequence of MIDI ragtime songs.
The program requires the following dependencies (easy to install using pip):
To train the model, simply run main.py
. Once trained, you can generate the results with main.py --test --sample_length 500
. For more help and options, use python main.py -h
.
To visualize the computational graph and the cost with TensorBoard, run tensorboard --logdir save/
.
Credits for the code go to Conchylicultor. I've merely created a wrapper to get people started.