Code Monkey home page Code Monkey logo

mmm-jsb's Introduction

MMM: Exploring Conditional Multi-Track Music Generation with the Transformer and the Johann Sebastian Bach Chorales Dataset.

Implementation of the paper "MMM: Exploring Conditional Multi-Track Music Generation with the Transformer" (paper). Uses OpenAI's GPT-2 to compose music.

Contact.

Find me on LinkedIn and say hello.

If you find and issue or have a feature request, report either here on GitHub.

Please be so kind and star the repository if you find it useful.

Acknowledgements.

This repository has been created in cooperation with Pyoneer. I am very grateful!

About.

This repository allows you to train GPT-2 on the Johann Sebastian Bach chorale dataset. You can train both MMMTrack and MMMBar from the paper.

How to run.

Requirements:

pip install transformers
pip install tokenizers
pip install torch
pip install music21
pip install note_seq

Training:

  1. Clone this repository git clone https://github.com/AI-Guru/MMM-JSB.git.
  2. Train MMMTrack with python train_jsb_mmmtrack.py.
  3. Train MMMBar with python train_jsb_mmmbar.py.

Sampling: Run the jupyter notebook.

Training should take roughly one hour on a GPU per model for the JSB dataset.

Pretrained checkpoint.

A pretrained network can be found here: https://ai-guru.s3.eu-central-1.amazonaws.com/mmm-jsb/mmm_jsb_checkpoints.zip

What is missing?

  • TensorFlow support is rudimentary.
  • Data preprocessing and training on the Lakh dataset.
  • Implementation as a tool or a DAW plugin.

License.

Released under the Apache-2.0 License.

mmm-jsb's People

Contributors

ai-guru avatar

Stargazers

 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.