Traceback (most recent call last):


 "npy2ckpt.py", line 69, in <module>

main()


 "npy2ckpt.py", line 62, in main

net.load(args.npy_path, sess)


 "/home/yangyuchao/zip/tensorflow-deeplab-resnet-master/kaffe/tensorflow/network.py", line 66, in load

session.run(var.assign(data))


 "/home/yangyuchao/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 516, in assign

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


 "/home/yangyuchao/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 271, in assign

validate_shape=validate_shape)


 "/home/yangyuchao/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 45, in assign

use_locking=use_locking, name=name)


 "/home/yangyuchao/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op

op_def=op_def)


 "/home/yangyuchao/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2508, in create_op

set_shapes_for_outputs(ret)


 "/home/yangyuchao/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1873, in set_shapes_for_outputs

shapes = shape_func(op)


 "/home/yangyuchao/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1823, in call_with_requiring

return call_cpp_shape_fn(op, require_shape_fn=True)


 "/home/yangyuchao/tensorflow/local/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)


 "/home/yangyuchao/tensorflow/local/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 2048 and 64 for 'bn5a_branch1_1/Assign' (op: 'Assign') with input shapes: [2048], [64].
Traceback (most recent call last):


 "./demo.py", line 115, in <module>

net = get_network(args.demo_net)


 "/home/mengfei/Desktop/faster_rcnn/lib/networks/factory.py", line 27, in get_network

return lib.networks.VGGnet_test()


 "/home/mengfei/Desktop/faster_rcnn/lib/networks/VGGnet_test.py", line 16, in __init__

self.setup()


 "/home/mengfei/Desktop/faster_rcnn/lib/networks/VGGnet_test.py", line 57, in setup

.fc(4096, name='fc6')


 "/home/mengfei/Desktop/faster_rcnn/lib/networks/network.py", line 23, in layer_decorated

layer_output = op(self, layer_input, *args, **kwargs)


 "/home/mengfei/Desktop/faster_rcnn/lib/networks/network.py", line 269, in fc

weights = self.make_var('weights', [dim, num_out], init_weights, trainable)


 "/home/mengfei/Desktop/faster_rcnn/lib/networks/network.py", line 90, in make_var

return tf.get_variable(name, shape, initializer=initializer, trainable=trainable)


 "/home/mengfei/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 1317, in get_variable

constraint=constraint)


 "/home/mengfei/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 1079, in get_variable

constraint=constraint)


 "/home/mengfei/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 425, in get_variable

constraint=constraint)


 "/home/mengfei/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 394, in _true_getter

use_resource=use_resource, constraint=constraint)


 "/home/mengfei/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/variable_scope.py", line 754, in _get_single_variable

"but instead was %s." % (name, shape))
ValueError: Shape of a new variable (fc6/weights) must be fully defined, but instead was (?, 4096).
