Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment setup #2

Open
mc0514 opened this issue Aug 20, 2016 · 5 comments
Open

Environment setup #2

mc0514 opened this issue Aug 20, 2016 · 5 comments

Comments

@mc0514
Copy link

mc0514 commented Aug 20, 2016

Hi,
could you show me how to run your code?

@lostanlen
Copy link
Owner

  • First, you need to get the MedleyDB dataset for training and the solosDb dataset for test.
    MedleyDB is available at:http://medleydb.weebly.com/
  • For solosDb I made a mirror at https://github.com/lostanlen/medleydb-single-instruments. You only need the test folder to run my ConvNet.
  • Put these datasets into ~/datasets (or change the path in the code)
  • Install the MedleyDB package with pip
  • Get bleeding-edge versions of Theano, Keras, and librosa.
  • The code you need to reproduce my ISMIR 2016 experiments is in script_train.py.
  • The code implementing spiral convolutional networks is in learning.py

I hope this helps.

@Kaustubhk12
Copy link

Kaustubhk12 commented Apr 24, 2017

Hi,
I tried running your code but I am unable to install medleydb.sql package required by singlelabel.py, it has been deprecated.

@Kaustubhk12
Copy link

Any suggestions as to how to run your code inspite of the fact that medleydb.sql is not available/ deprecated and your code uses medleydb.sql?

@scriptator
Copy link

scriptator commented Aug 24, 2017

In [1]: import DeepInstruments
Using TensorFlow backend.
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-fda0621afab2> in <module>()
----> 1 import DeepInstruments

/Users/johannesvass/ownCloud/Studium/2017S_Bachelorarbeit/ismir2016/DeepInstruments/__init__.py in <module>()
     51 import DeepInstruments.audio
     52 import DeepInstruments.descriptors
---> 53 import DeepInstruments.learning
     54 import DeepInstruments.singlelabel
     55 import DeepInstruments.symbolic

/Users/johannesvass/ownCloud/Studium/2017S_Bachelorarbeit/ismir2016/DeepInstruments/learning.py in <module>()
----> 1 from keras.models import Graph
      2 from keras.layers.advanced_activations import LeakyReLU
      3 from keras.layers.core import Dense, Dropout, Flatten
      4 from keras.layers.convolutional import Convolution2D, MaxPooling2D
      5

ImportError: cannot import name 'Graph'

Also, keras.models.Graph seems to be deprecated, see keras-team/keras#4661

@lostanlen
Copy link
Owner

In the matter of one year, this code has gone completely stale. This is because Keras 2 has removed the Graph object (now uses a "functional API") and also because MedleyDB has removed its SQL backend.
What is your use case? If what you want is to re-use the spiral convolutional network for your own dataset/task, I suggest you re-implement it from scratch according to the code which is in learning.py. I can help you with putting it up to date for Keras v2. The rest of the package is mostly data wrangling related to MedleyDB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants