Giter Club home page Giter Club logo

how_to_generate_music_in_tensorflow_live's Introduction

MusicGenerator

Overview

This is the code for this video on Youtube by Siraj Raval as part of the Deep Learning Nanodegree course with Udacity. We're going to use an encoder-decoder model to generate a MIDI sequence given an input sequence of MIDI ragtime songs.

Dependencies

The program requires the following dependencies (easy to install using pip):

  • Python 3
  • TensorFlow (tested with v0.10.0rc0. Won't work with previous versions)
  • CUDA (for using gpu, see TensorFlow installation page for more details)
  • Numpy (should be installed with TensorFlow)
  • Mido (midi library)
  • Tqdm (for the nice progression bars)
  • OpenCv (Sorry, there is no simple way to install it with python 3. It's primarily used as visualisation tool to print the piano roll so is quite optional. All OpenCv calls are contained inside the imgconnector file so if you want to use test the program without OpenCv, you can try removing the functions inside the file)

Usage

To train the model, simply run main.py. Once trained, you can generate the results with main.py --test --sample_length 500. For more help and options, use python main.py -h.

To visualize the computational graph and the cost with TensorBoard, run tensorboard --logdir save/.

Credits

Credits for the code go to Conchylicultor. I've merely created a wrapper to get people started.

how_to_generate_music_in_tensorflow_live's People

Contributors

llsourcell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.