All Projects → gauravtheP → Music Generation Using Deep Learning

gauravtheP / Music Generation Using Deep Learning

A Deep Learning Case Study to Generate Music Sequences using Char RNN, where each RNN is an LSTM unit.

Projects that are alternatives of or similar to Music Generation Using Deep Learning

Cs230 Pointfusion
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Learn Pandas
Tutorials on how to use pandas effectively to do data analysis
Stars: ✭ 1,045 (+2032.65%)
Mutual labels:  jupyter-notebook
Missing Data Workshop
Matt Brems' Missing Data Workshop
Stars: ✭ 49 (+0%)
Mutual labels:  jupyter-notebook
Music Synthesis With Python
Music Synthesis with Python talk, originally given at PyGotham 2017.
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Data Open Analysis
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Mom6 Examples
Example configurations for MOM6 and SIS2
Stars: ✭ 47 (-4.08%)
Mutual labels:  jupyter-notebook
Serverless For Data Scientists
Code and notebooks for a talk given at PyBay, 2018-08-19
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Reaction Diffusion
Some Python examples to obtain reaction-diffusion results and animations.
Stars: ✭ 47 (-4.08%)
Mutual labels:  jupyter-notebook
Machine Learning With Python
Machine Learning Implementations in Python
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Rsna Intracranial
Stars: ✭ 49 (+0%)
Mutual labels:  jupyter-notebook
Word2vec
訓練中文詞向量 Word2vec, Word2vec was created by a team of researchers led by Tomas Mikolov at Google.
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Machine Learning For The Web
Code repository for Machine Learning for the Web, published by Packt
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Cs231n 2020 Spring Assignment Solution
solution for CS231n 2020 spring assignment
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Machine learning from scratch
A place to hold various "from scratch" machine learning algorithms developed in Python as pedagogical tools.
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Whale Identification 2018
Solution to Whale Identification Challenge 2018
Stars: ✭ 49 (+0%)
Mutual labels:  jupyter-notebook
Mlhyperparametertuning
Example of using HyperDrive to tune a regular ML learner.
Stars: ✭ 48 (-2.04%)
Mutual labels:  jupyter-notebook
Semanticsegmentation dl
Resources of semantic segmantation based on Deep Learning model
Stars: ✭ 1,045 (+2032.65%)
Mutual labels:  jupyter-notebook
Cnn Hierarchical Network For Document Classification
This repository contains the implementation of paper "Hierarchical Attentional Hybrid Neural Networks for Document Classification"
Stars: ✭ 49 (+0%)
Mutual labels:  jupyter-notebook
Deep Homography Estimation Pytorch
Deep homography network with Pytorch
Stars: ✭ 49 (+0%)
Mutual labels:  jupyter-notebook
Data Science Lunch And Learn
Resources for weekly Data Science Lunch & Learns
Stars: ✭ 49 (+0%)
Mutual labels:  jupyter-notebook

Music Generation Using Deep-Learning

Check out the blog of this case study at the following link:

https://medium.com/@gauravsharma2656/music-generation-using-deep-learning-85010fb982e2

Real World Problem

This case-study focuses on generating music automatically using Recurrent Neural Network(RNN). We do not necessarily have to be a music expert in order to generate music. Even a non expert can generate a decent quality music using RNN. We all like to listen interesting music and if there is some way to generate music automatically, particularly decent quality music then it's a big leap in the world of music industry. Task: Our task here is to take some existing music data then train a model using this existing data. The model has to learn the patterns in music that we humans enjoy. Once it learns this, the model should be able to generate new_ music for us. It cannot simply copy-paste from the training data. It has to understand the patterns of music to generate new music. We here are not expecting our model to generate new music which is of professional quality, but we want it to generate a decent quality music which should be melodious and good to hear. Now, what is music? In short music is nothing but a sequence of musical notes. Our input to the model is a sequence of musical events/notes. Our output will be new sequence of musical events/notes. In this case-study we have limited our self to single instrument music as this is our first cut model. In future, we will extend this to multiple instrument music.

Data Source:

  1. http://abc.sourceforge.net/NMD/
  2. http://trillian.mit.edu/~jc/music/book/oneills/1850/X/

From first data-source, we have downloaded first two files:

  • Jigs (340 tunes)
  • Hornpipes (65 tunes)

How to Run the Model

In order to run the model you can run the file " Music_Generation_Train2.ipynb" You can also load weights which are in the file" Data2/Model_Weights/". There are total 9 weight files over there. Each weight file represents the epoch number. For instance " Weights_50.h5" are the weights saved at epoch 50. We ran our model for total of 90 epochs. You can add more layers into your model and fine tune the existing layers in the model. Any epoch weight can be loaded for fine tuning or "Transfer Learning".

How to Generate Music Sequence

Once the model is defined and weights are calculated then run "Generate_Music.ipynb" file. If the architecture of your model is different than just change the architecture of the model in "make_model" function and generate music sequence.

Type of Data:

There are total of 405 music tunes in abc notation.

Prerequisites

You need to have installed following softwares and libraries in your machine before running this project.

  1. Python 3
  2. Anaconda: It will install ipython notebook and most of the libraries which are needed like sklearn, pandas, seaborn, matplotlib, numpy, scipy.
  3. keras

Installing

  1. Python 3: https://www.python.org/downloads/
  2. Anaconda: https://www.anaconda.com/download/
  3. Keras: pip install keras

Built With

  • ipython-notebook - Python Text Editor
  • numpy, scipy- number python library
  • pandas - data handling library
  • Keras - Deep Learning Library

Authors

  • Gaurav Sharma - Complete work

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].