Conan Lu and Shlomo Dubnov
University of California, San Diego
The Python scripts and Colab notebooks are compatible with Tensorflow 1.15.
The Colab version is able to train the model and run transfer samples. Provide two datasets (folders of MIDI files) for runtime.
To train custom dataset online:
- Add notebook (chordgan.ipynb) to Colab.
- Upload the other files (Pop_Music_Midi.zip, reverse_pianoroll.py, and convert.py) to the runtime.
- Add your own dataset in ZIP format. (Pop_Music_Midi.zip provided)
- Run notebook.
- Run the following:
python chordgan.py --tolearn INPUT_DIR --totransfer INPUT2_DIR --output OUTPUT_DIR