gaurav-singh1998 / ABC_Notation_Music_Generation

This is my first deep learning project in which I implemented a LSTM model on abc notation music data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ABC_Notation_Music_Generation

Introduction

In this deep learning project, which is inspired by the Andrej Karpathy's blog 'The Unreasonable Effectiveness of Recurrent Neural Networks', I implemented a LSTM model on abc notation music data.

Requirements

This repository requires installation of Tensorflow, Numpy and Keras to run smoothly.

Information regarding this repository

The input data is present in './data' named 'input.txt'.

The accuracy and loss associated with every epoch is stored in './logs' in csv format named 'training_log.csv'.

Model at every epoch is stored in './model' in h5 format.

A Jupyter Notebook is also presented in which I visualized the result generated by the model.

How to use

Use 'sample.py' to run the trained model with no number of epochs, length and seed as arguments to the program. The output generated by this script can be pasted here 'https://abcjs.net/abcjs-editor.html' to play the generated music.

Use 'train.py' to train the model from scratch. Here the arguments are input, epochs and save_freq.

Use 'model.py' to change the parameters of the model.

About

This is my first deep learning project in which I implemented a LSTM model on abc notation music data.

License:MIT License


Languages

Language:Jupyter Notebook 89.8%Language:Python 10.2%