Extension on DeepJ A.I. Music Composition Model: https://github.com/calclavia/DeepJ
IDE used for running the program is Anaconda 1.5.2 and Spyder 3.2.8.
(Optional: Visual Studio Code with Python plugins)
The python version used is Python 3.6.
Please copy and paste the chromedriver_win32 folder in C:\ drive.
- Install Anaconda for Python 3.6 version following this link:https://www.anaconda.com/download/
- Install Spyder IDE in Anaconda.
- Once you have installed Anaconda, you can straightly run Windows default CMD as administrator and execute the following command to install selenium: pip install selenium
- You can also install selenium through Anaconda Navigator -> Environment -> Not installed and then search for selenium.
For training data set, please put the selected MIDI files into data folder and then change the respective code in the constants.py (genre and styles)
Please execute the following code in your Google Colab's Jupyter Notebook:
!apt-get install -y -qq software-properties-common python-software-properties module-init-tools
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!apt-get update -qq 2>&1 > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse
from google.colab import auth
auth.authenticate_user()
from oauth2client.client import GoogleCredentials
creds = GoogleCredentials.get_application_default()
import getpass
!google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL
vcode = getpass.getpass()
!echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}
!mkdir -p drive
!google-drive-ocamlfuse drive
!pip install keras==2.0
!apt-get install swig
!apt-get install libasound2-dev
!pip install git+https://github.com/vishnubob/python-midi@feature/python3
!pip install -r drive/app/DeepJ/requirements.txt
!pip install --upgrade tensorflow-gpu==1.4
!python drive/app/DeepJ/train.py
!python drive/app/DeepJ/generate.py