-
-
Save anonymous/595a4b0670bf0e00410d471ced923166 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python example_tagging.py | |
Using TensorFlow backend. | |
Running main() with network: crnn and backend: tensorflow | |
Traceback (most recent call last): | |
File "example_tagging.py", line 87, in <module> | |
main(net) | |
File "example_tagging.py", line 65, in main | |
model = MusicTaggerCRNN(weights='msd') | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/music_tagger_crnn.py", line 140, in MusicTaggerCRNN | |
by_name=True) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/keras/engine/topology.py", line 2706, in load_weights | |
self.load_weights_from_hdf5_group_by_name(f) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/keras/engine/topology.py", line 2843, in load_weights_from_hdf5_group_by_name | |
K.batch_set_value(weight_value_tuples) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 1876, in batch_set_value | |
assign_op = x.assign(assign_placeholder) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 522, in assign | |
return state_ops.assign(self._variable, value, use_locking=use_locking) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 47, in assign | |
use_locking=use_locking, name=name) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op | |
op_def=op_def) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2329, in create_op | |
set_shapes_for_outputs(ret) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1717, in set_shapes_for_outputs | |
shapes = shape_func(op) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1667, in call_with_requiring | |
return call_cpp_shape_fn(op, require_shape_fn=True) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 610, in call_cpp_shape_fn | |
debug_python_shape_fn, require_shape_fn) | |
File "/home/nartes/Documents/current/music-auto_tagging-keras/tmp/env/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 676, in _call_cpp_shape_fn_impl | |
raise ValueError(err.message) | |
ValueError: Dimension 0 in both shapes must be equal, but are 96 and 1440 for 'Assign' (op: 'Assign') with input shapes: [96], [1440]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment