Codes for the paper
Zhiqian Chen, Chih-Wei Wu, Cheng-Yen Lu, Alexander Lerch, Chang-Tien Lu, Learning to Fuse Music Genres with Generative Adversarial Dual Learning, International Conference on Data Mining(ICDM), New Orleans, USA, 2017
Please refer to https://imczq.com/publication/17_fusiongan_icdm/
required python package
numpy tensorflow magenta.music pandas midi music21
Files description
discriminator.py
: GAN discriminator classgenerator.py
: GAN generator classdataloader.py
: data handlermidi_io.py
: music data process, such as MIDI to seq and seq to MIDIrollout.py
: rollout for delayed update in reinforcement learningDownload all files and run
python fusion_gan.py
*.pkl is pre-processed files of music, but they cannot be recovered into original music
Please see midi_io.py
in which there are functions for converting between MIDI and number sequences.
Then, update the data path at main
function of fusion_gan.py
@article{fusiongan-icdm
author = {Zhiqian Chen and
Chih{-}Wei Wu and
Yen{-}Cheng Lu and
Alexander Lerch and
Chang{-}Tien Lu},
title = {Learning to Fuse Music Genres with Generative Adversarial Dual Learning},
booktitle = {Proceedings of the The IEEE International Conference on Data Mining},
year = {2017},
}