ismir2016 icon indicating copy to clipboard operation
ismir2016 copied to clipboard

Environment setup

Open mc0514 opened this issue 9 years ago • 5 comments

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

mc0514 avatar Aug 20 '16 10:08 mc0514

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

lostanlen avatar Aug 20 '16 11:08 lostanlen

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

Kaustubhk12 avatar Apr 24 '17 02:04 Kaustubhk12

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?

Kaustubhk12 avatar May 30 '17 04:05 Kaustubhk12

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 https://github.com/fchollet/keras/issues/4661

scriptator avatar Aug 24 '17 07:08 scriptator

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.

lostanlen avatar Sep 16 '17 19:09 lostanlen