All Projects β†’ unnati-xyz β†’ Music Generation

unnati-xyz / Music Generation

An RNN implementation to generate music

Projects that are alternatives of or similar to Music Generation

Learning Notes
πŸ’‘ Repo of learning notes in DRL and DL, theory, codes, models and notes maybe.
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Trained Ternary Quantization
Reducing the size of convolutional neural networks
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Beauty.torch
Understanding facial beauty with deep learning.
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Computer vision
Some computer vision tutorials for my articles
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Theconsciousnessprior
AI-ON Consciousness Prior
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Deep learning
비전곡생도 ν•œλˆˆμ— μ΄ν•΄ν•˜λŠ” λ”₯λŸ¬λ‹ 자료λͺ¨μŒ
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Stnn
Code for the paper "Spatio-Temporal Neural Networks for Space-Time Series Modeling and Relations Discovery"
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Sci Pype
A Machine Learning API with native redis caching and export + import using S3. Analyze entire datasets using an API for building, training, testing, analyzing, extracting, importing, and archiving. This repository can run from a docker container or from the repository.
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Readingbricks
A structured collection of tagged notes about machine learning theory and practice endowed with search infrastructure that allows users to read requested info only.
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Starcraft2 Replay Analysis
A jupyter notebook that provides analysis for StarCraft 2 replays
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Machine Learning Numpy
Gathers Machine learning models using pure Numpy to cover feed-forward, RNN, CNN, clustering, MCMC, timeseries, tree-based, and so much more!
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Tutorial Arima W Jeffrey Yau
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Fashionnet
Fashion recommender system using deep learning
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Ucb w205 crook supplement
UC Berkeley, W205 Data Engineering, 2018 Spring, Kevin Crook's supplement
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Python For Signal Processing
Notebooks for "Python for Signal Processing" book
Stars: ✭ 1,296 (+1340%)
Mutual labels:  jupyter-notebook
Cnn intent classification
CNN for intent classification task in a Chatbot
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Ai Dl Enthusiasts Meetup
AI & Deep Learning Enthusiasts Meetup Project & Study Sessions
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Kafka Sparkstreaming Cassandra
Docker container for Kafka - Spark Streaming - Cassandra
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Kaggle House Prices Advanced Regression Techniques
Udacity capstone project: Kaggle competition on house prices prediction using advanced regression techniques
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook
Appliedml python coursera
Material and note of the course of Applied ML in Python
Stars: ✭ 90 (+0%)
Mutual labels:  jupyter-notebook

music-generation

Algorithmic music generation using RNN(Recurrent Neural Networks)

Language used : Python 3.5

The following packages have to be installed before running this code:

  1. Keras version 0.1.0 with Theano as the backend.
  2. NumPy and SciPy for various mathematical computation on tensors.
  3. Matplotlib for visualizing the input.
  4. LAME and SoX to convert mp3 files into other formats such as wav.

Step 1: Converting the given mp3 files into np tensors

Type the following command into the terminal:

python convert_directory.py

This converts mp3 into mono files and then into WAV file, which is stored in the form of np-tensors. These np-tensors are given as input to our LSTM model. By the end of this one can find these 2 files generated "YourMusicLibraryNP_x.npy", "YourMusicLibraryNP_y.npy". "YourMusicLibraryNP_x.npy" contains the input sequence for training and "YourMusicLibraryNP_y.npy" contains the same sequence as that of input sequence but shifted by one block.

Step 2: Training the model

Type the following command into the terminal:

python train.py

This builds a LSTM model that generates a sequence of notes which is compared against the expected output and the errors are back-propagated, thus adjusting the parameters learnt by the LSTM. You can change the number of Iterations, number of epochs per iteration and batch size by adjusting the following parameters "num_iters", "epochs_per_iter", "batch_size" respectively in train.py.

Step 3: Generating the music

Now that you've finished training the model, its time to generate some music:) Type the following command in your terminal':

python generate.py

The generated WAV file is stored in a file named generated_song.wav.

You can further read about the entire procedure involved in generating the music, in the following post that is there on this repository, Blog_Post_Music_Gen_1.md.

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].