/slash

Teaching neural networks how to play guitar: Generating guitar solos with samplernn.

Primary LanguagePythonMIT LicenseMIT

Slash

  • Teaching neural networks how to play guitar
  • Based on SampleRNN (Mehri et al. 2016)
  • Under progress!!

alt

License

MIT License

Results (generated over time)

link to video

Preprocessing .wav files

  • navigate to project directory
  • create waves directory inside the current directory
  • copy all the wave files inside this directory
  • run $ python preprocess.py
  • A data.npy file is created inside tmp directory

Training model

  • run $ python train_model.py
  • weights are stored in ../params/ directory
  • logs are stored in ../logs/ directory
  • generated samples are stored in ../gen/ directory

Tensorboard visualization

  • training logs dir: ../logs/train/
  • validation logs dir: ../logs/valid/

Generating samples

  • samples are automatically generated after gen_freq iterations
  • samples are generated inside gen directory

Changing model/training configurations

  • Just modify the corresponding parameters in settings.cfg

Blog

link to blog