Giter Club home page Giter Club logo

machinelearning-musicgeneration's Introduction

Music Generation with Azure Machine Learning

Sequence-to-Sequence model using multi-layered LSTM for music generation. For more detailed walkthrough see: blog

Prerequisites

The prerequisites to run this example are as follows:

  1. Make sure that you have properly installed Azure Machine Learning Workbench by following the Install and create Quickstart

  2. This example could be run on any compute context. However, it is recommended to run it on a GPU machine to accelerate the training process.

  3. Access to an Azure Blob Storage Account. See how to create and manage your storage account here

Create a new Workbench project

  1. Clone this repo to your local machine to /MachineLearning-MusicGeneration
  2. Open Azure Machine Learning Workbench
  3. On the Projects page, click the + sign and select Add Existing Folder as Project
  4. Delete the .git folder in the cloned repo as Azure Machine Learning Workbench currently cannot import projects that contain a git repo
  5. In the Add Existing Folder as Project pane, set the project directory to the location where this repo has been cloned and fill in the information for your new project
  6. Click Create

Setup compute environment

Setup remote VM as execution target

az ml computetarget attach --name "my_dsvm" --address "my_dsvm_ip_address" --username "my_name" --password "my_password" --type remotedocker

Configure my_dsvm.compute

baseDockerImage: microsoft/mmlspark:plus-gpu-0.7.91
nvidiaDocker: true

Configure my_dsvm.runconfig

To push models to Azure Blob Storage, add your storage account details to your .runconfig file:

EnvironmentVariables:
  "STORAGE_ACCOUNT_NAME": "<YOUR_AZURE_STORAGE_ACCOUNT_NAME>"
  "STORAGE_ACCOUNT_KEY": "<YOUR_AZURE_STORAGE_ACCOUNT_KEY>"
Framework: Python

For more info on Azure ML Workbench compute targets see documentation.

Train

To train your own model using a DSVM compte target

Prepare compute environment

az ml experiment -c prepare my_dsvm

Run the experiment

az ml experiment submit -c my_dsvm MusicGeneration/train.py

Generate Music (Predict)

az ml experiment submit -c my_dsvm MusicGeneration/score.py

Listen to your own music!

The song generated in the previous step will be saved in your Blob Storage conatiner. You can listen to the song by downloading the .mid file and playing it using any standard media player like Windows Media Player for example.

Data Credit

The dataset used for the experiments is available at (http://www.feelyoursound.com/scale-chords/)

machinelearning-musicgeneration's People

Contributors

erikamenezes avatar erimen1 avatar hning86 avatar microsoftopensource avatar msftgits avatar mwinkle avatar serinakaye avatar

Watchers

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