Skip to content

Commit 4bc02c3

Browse files
committed
Create an install script to take care of all the dependencies and data, use Anaconda.
#3 - TensorFlow 0.8 #2 - matplotlib
1 parent 8a5be0c commit 4bc02c3

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ A project that trains a LSTM recurrent neural network over a dataset of MIDI fil
55
Dependencies
66
============
77

8+
* Python 2.7
9+
* Anaconda
810
* Numpy (http://www.numpy.org/)
9-
* Tensorflow (https://github.com/tensorflow/tensorflow)
11+
* Tensorflow (https://github.com/tensorflow/tensorflow) - 0.8
1012
* Python Midi (https://github.com/vishnubob/python-midi.git)
1113
* Mingus (https://github.com/bspaans/python-mingus)
14+
* Matplotlib (http://matplotlib.org/)
1215

1316
Basic Usage
1417
===========
1518

16-
1. `mkdir data && mkdir models`
17-
2. Download the dataset [Nottingham MIDI dataset](http://www-etud.iro.umontreal.ca/~boulanni/Nottingham.zip) and unzip to `data/Nottingham`
19+
1. Run `./install.sh` to create conda env, install dependencies and download data
20+
2. `source activate music_rnn` to activate the conda environment
1821
3. Run `python nottingham_util.py` to generate the sequences and chord mapping file to `data/nottingham.pickle`
1922
4. Run `python rnn.py --run_name YOUR_RUN_NAME_HERE` to start training the model. Use the grid object in `rnn.py` to edit hyperparameter
2023
configurations.
24+
5. `source deactivate` to deactivate the conda environment

install.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
conda create -n music_rnn python=2.7
2+
source activate music_rnn
3+
4+
pip install -r requirements.txt
5+
6+
mkdir models
7+
8+
mkdir data
9+
# http://www-etud.iro.umontreal.ca/~boulanni/icml2012
10+
wget http://www-etud.iro.umontreal.ca/~boulanni/Nottingham.zip -O data/Nottingham.zip
11+
unzip data/Nottingham.zip -d data/

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
matplotlib
2+
mingus
3+
numpy
4+
git+https://github.com/vishnubob/python-midi#egg=midi
5+
# Linux, Python 2.7, GPU
6+
https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

0 commit comments

Comments
 (0)