Ghadjeres/DeepBach

no module named 'metadata' when trying to use pretrained data bach_dataset.pickle

Opened this issue · 2 comments

jbrea commented

After cloning the current master branch, installing all dependencies, downloading the pretrained models with download_pretrained_data.sh (which btw. throws the error that the target directories are not empty), moving the data with mv deepbach_ressources/datasets/raw_dataset/bach_dataset.pickle DeepBach/datasets/raw_dataset I get the following error when trying to generate a sample

$ python deepBach.py -l 100 -o output.mid                                                                                    
/usr/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Using TensorFlow backend.
Namespace(batch_size_train=128, dataset='', ext='', length=100, midi_file=None, name='deepbach', num_dense=200, num_iterations=20000, num_units_lstm=[200, 200], output_file='output.mid', overwrite=False, parallel=1, reharmonization=None, steps_per_epoch=500, timesteps=16, train=0, validation_steps=20)
Traceback (most recent call last):
  File "deepBach.py", line 183, in <module>
    main()
  File "deepBach.py", line 102, in main
    'rb'))
ModuleNotFoundError: No module named 'metadata'

The error does not occur, if I remove bach_dataset.pickle again.

jbrea commented

Hi. Thanks for your response. Regenerating the data and training a new model does indeed work.