Traceback (most recent call last):


 "/media/wrc/新加卷/lxy/image-segmentation-keras/predict.py", line 34, in <module>

m.load_weights(
args.save_weights_path + "epoch.h5"
)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/keras/engine/network.py", line 1166, in load_weights

f, self.layers, reshape=reshape)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/keras/engine/saving.py", line 1058, in load_weights_from_hdf5_group

K.batch_set_value(weight_value_tuples)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/keras/backend/tensorflow_backend.py", line 2465, in batch_set_value

assign_op = x.assign(assign_placeholder)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/tensorflow/python/ops/variables.py", line 615, in assign

return state_ops.assign(self._variable, value, use_locking=use_locking)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/tensorflow/python/ops/state_ops.py", line 283, in assign

validate_shape=validate_shape)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/tensorflow/python/ops/gen_state_ops.py", line 60, in assign

use_locking=use_locking, name=name)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper

op_def=op_def)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 3392, in create_op

op_def=op_def)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1734, in __init__

control_input_ops)


 "/home/wrc/anaconda3/envs/unet/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 1570, in _create_c_op

raise ValueError(str(e))
ValueError: Dimension 0 in both shapes must be equal, but are 40 and 14. Shapes are [40] and [14]. for 'Assign_22' (op: 'Assign') with input shapes: [40], [14].`

Traceback (most recent call last):


 "/opt/anaconda3/envs/tensorflow/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 1664, in create_block_manager_from_blocks

construction_error(tot_items, blocks[0].shape[1:], axes, e)


 "/opt/anaconda3/envs/tensorflow/lib/python3.7/site-packages/pandas/core/internals/managers.py", line 1694, in construction_error

raise ValueError(f"Shape of passed values is {passed}, indices imply {implied}")
ValueError: Shape of passed values is (2364, 2), indices imply (2364, 1)
