Description
I only change ht , wd parameters,two different values.
Using TensorFlow backend.
Original Dimension of Content Image: (696, 462, 3)
display: unable to open X server ' @ error/display.c/DisplayImageCommand/426. Original Dimension of Style Image: (696, 462, 3) New Dimension of Content Image: (1, 696, 462, 3) New Dimension of Style Image: (1, 696, 462, 3) display: unable to open X server
' @ error/display.c/DisplayImageCommand/426.
Traceback (most recent call last):
File "ArtisticStyleTransfer.py", line 103, in
input_tensor = K.concatenate([content_image, style_image, combination_image],axis = 0)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 1934, in concatenate
return tf.concat([to_dense(x) for x in tensors], axis)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1099, in concat
return gen_array_ops._concat_v2(values=values, axis=axis, name=name)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 706, in _concat_v2
"ConcatV2", values=values, axis=axis, name=name)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2958, in create_op
set_shapes_for_outputs(ret)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2209, in set_shapes_for_outputs
shapes = shape_func(op)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2159, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 627, in call_cpp_shape_fn
require_shape_fn)
File "/home/dlspm/.virtualenvs/env27/local/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 691, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Dimension 0 in both shapes must be equal, but are 696 and 462 for 'concat' (op: 'ConcatV2') with input shapes: [1,696,462,3], [1,696,462,3], [1,462,696,3], [] and with computed input tensors: input[3] = <0>.
Can you give me some advice? Where did I go wrong during training? many thanks!