retina-unet
retina-unet copied to clipboard
Dimension 1 in both shapes must be equal, but are 12 and 24 for 'merge_1/concat'
I've downloaded the DRIVE datasets but when I run this:
python run_testing.py
I get this error:
Traceback (most recent call last):
File "./src/retinaNN_predict.py", line 111, in <module>
model = model_from_json(open(path_experiment+name_experiment +'_architecture.json').read())
File "/Users/pontikos/Library/Python/2.7/lib/python/site-packages/keras/models.py", line 345, in model_from_json
return layer_module.deserialize(config, custom_objects=custom_objects)
File "/Users/pontikos/Library/Python/2.7/lib/python/site-packages/keras/layers/__init__.py", line 54, in deserialize
printable_module_name='layer')
File "/Users/pontikos/Library/Python/2.7/lib/python/site-packages/keras/utils/generic_utils.py", line 139, in deserialize_keras_object
list(custom_objects.items())))
File "/Users/pontikos/Library/Python/2.7/lib/python/site-packages/keras/engine/topology.py", line 2497, in from_config
process_node(layer, node_data)
File "/Users/pontikos/Library/Python/2.7/lib/python/site-packages/keras/engine/topology.py", line 2456, in process_node
layer(input_tensors, **kwargs)
File "/Users/pontikos/Library/Python/2.7/lib/python/site-packages/keras/engine/topology.py", line 602, in __call__
output = self.call(inputs, **kwargs)
File "/Users/pontikos/Library/Python/2.7/lib/python/site-packages/keras/legacy/layers.py", line 212, in call
return K.concatenate(inputs, axis=self.concat_axis)
File "/Users/pontikos/Library/Python/2.7/lib/python/site-packages/keras/backend/tensorflow_backend.py", line 1709, in concatenate
return tf.concat([to_dense(x) for x in tensors], axis)
File "/Users/pontikos/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1034, in concat
name=name)
File "/Users/pontikos/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 519, in _concat_v2
name=name)
File "/Users/pontikos/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
op_def=op_def)
File "/Users/pontikos/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2338, in create_op
set_shapes_for_outputs(ret)
File "/Users/pontikos/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1719, in set_shapes_for_outputs
shapes = shape_func(op)
File "/Users/pontikos/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1669, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/Users/pontikos/anaconda2/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 "/Users/pontikos/anaconda2/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 1 in both shapes must be equal, but are 12 and 24 for 'merge_1/concat' (op: 'ConcatV2') with input shapes: [?,256,24,12], [?,64,24,24], [] and with computed input tensors: input[2] = <1>.