NOTE This content is no longer maintained. Visit the Azure Machine Learning Notebook project for sample Jupyter notebooks for ML and deep learning 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:
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.
Access to an Azure Blob Storage Account. See how to create and manage your storage account here
Create a new Workbench project
Clone this repo to your local machine to /MachineLearning-MusicGeneration
Open Azure Machine Learning Workbench
On the Projects page, click the + sign and select Add Existing Folder as Project
Delete the .git folder in the cloned repo as Azure Machine Learning Workbench currently cannot import projects that contain a git repo
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
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
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.
请发表评论