Traceback (most recent call last):
File "train.py", line 295, in
run()
File "train.py", line 291, in run
coord.join(threads)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/training/queue_runner_impl.py", line 234, in _run
sess.run(enqueue_op)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 778, in run
run_metadata_ptr)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 982, in _run
feed_dict_string, options, run_metadata)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1032, in _do_run
target_list, options, run_metadata)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1052, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: assertion failed: [Need value.shape >= size, got ] [15 20 320] [19 19 320]
[[Node: random_crop/Assert/Assert = Assert[T=[DT_STRING, DT_INT32, DT_INT32], summarize=3, _device="/job:localhost/replica:0/task:0/cpu:0"](random_crop/All, random_crop/Assert/Assert/data_0, random_crop/Shape, random_crop/size)]]
Caused by op u'random_crop/Assert/Assert', defined at:
File "train.py", line 295, in
run()
File "train.py", line 221, in run
saver = build_graph()
File "train.py", line 135, in build_graph
train_data = inputs.generate_batches_to_train(train_files)
File "/home/md1046/mvcnn/mvcnn-master/temporal_stream/inputs.py", line 217, in generate_batches_to_train
example_list.append(self.preprocess(r, h, w, l))
File "/home/md1046/mvcnn/mvcnn-master/temporal_stream/inputs.py", line 160, in preprocess
resized_image_chunk = tf.random_crop(resized_image_chunk, [target_height, target_width, 2*self.temporal_depth])
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/ops/random_ops.py", line 303, in random_crop
["Need value.shape >= size, got ", shape, size])
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/ops/control_flow_ops.py", line 121, in Assert
condition, data, summarize, name="Assert")
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/ops/gen_logging_ops.py", line 39, in _assert
summarize=summarize, name=name)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
op_def=op_def)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2336, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/md1046/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1228, in __init__
self._traceback = _extract_stack()
InvalidArgumentError (see above for traceback): assertion failed: [Need value.shape >= size, got ] [15 20 320] [19 19 320]
[[Node: random_crop/Assert/Assert = Assert[T=[DT_STRING, DT_INT32, DT_INT32], summarize=3, _device="/job:localhost/replica:0/task:0/cpu:0"](random_crop/All, random_crop/Assert/Assert/data_0, random_crop/Shape, random_crop/size)]]
在调试神经网络模型中,出现上述错误,百度发现说是参数不匹配,目前还没发现问题所在,有待解决。