Hi. Can you help me to fix this problem. I have tried to run validate.py with AlexNet. thanks!
Caused by op u'fc8/biases/read', defined at:
File "./validate.py", line 102, in
main()
File "./validate.py", line 87, in main
net = load_model(args.model)
File "./validate.py", line 34, in load_model
return NetClass({'data': data_node})
File "/home/donghn/tensorflow/caffe-tensorflow/kaffe/tensorflow/network.py", line 47, in init
self.setup()
File "/home/donghn/tensorflow/caffe-tensorflow/examples/imagenet/models/alexnet.py", line 18, in setup
.fc(1000, relu=False, name='fc8')
File "/home/donghn/tensorflow/caffe-tensorflow/kaffe/tensorflow/network.py", line 21, in layer_decorated
layer_output = op(self, layer_input, *args, **kwargs)
File "/home/donghn/tensorflow/caffe-tensorflow/kaffe/tensorflow/network.py", line 199, in fc
biases = self.make_var('biases', [num_out])
File "/home/donghn/tensorflow/caffe-tensorflow/kaffe/tensorflow/network.py", line 98, in make_var
return tf.get_variable(name, shape, trainable=self.trainable)
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 1203, in get_variable
constraint=constraint)
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 1092, in get_variable
constraint=constraint)
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 425, in get_variable
constraint=constraint)
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 394, in _true_getter
use_resource=use_resource, constraint=constraint)
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 805, in _get_single_variable
constraint=constraint)
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 213, in init
constraint=constraint)
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 356, in _init_from_args
self._snapshot = array_ops.identity(self._variable, name="read")
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 125, in identity
return gen_array_ops.identity(input, name=name)
File "/usr/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 2071, in identity
"Identity", input=input, name=name)
File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2956, in create_op
op_def=op_def)
File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1470, in init
self._traceback = self._graph._extract_stack() # pylint: disable=protected-access
FailedPreconditionError (see above for traceback): Attempting to use uninitialized value fc8/biases
[[Node: fc8/biases/read = IdentityT=DT_FLOAT, _class=["loc:@fc8/biases"], _device="/job:localhost/replica:0/task:0/device:GPU:0"]]
[[Node: prob/_37 = _HostRecvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_91_prob", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
I met the same problem, some weights seem missing in .npy file.