Traceback (most recent call last):


 "main.py", line 327, in <module>

main(argv=sys.argv)


 "main.py", line 322, in main

shape=[_HEIGHT, _WIDTH, _NUM_CHANNELS])


 "/home/jto/projects/dogs_cats_tf/official/resnet/resnet_run_loop.py", line 396, in resnet_main

max_steps=flags.max_train_steps)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 363, in train

loss = self._train_model(input_fn, hooks, saving_listeners)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 843, in _train_model

return self._train_model_default(input_fn, hooks, saving_listeners)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 859, in _train_model_default

saving_listeners)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/estimator/estimator.py", line 1059, in _train_with_estimator_spec

_, loss = mon_sess.run([estimator_spec.train_op, estimator_spec.loss])


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 567, in run

run_metadata=run_metadata)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 1043, in run

run_metadata=run_metadata)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 1134, in run

raise six.reraise(*original_exc_info)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/six.py", line 686, in reraise

raise value


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 1119, in run

return self._sess.run(*args, **kwargs)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 1191, in run

run_metadata=run_metadata)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py", line 971, in run

return self._sess.run(*args, **kwargs)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 900, in run

run_metadata_ptr)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1135, in _run

feed_dict_tensor, options, run_metadata)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1316, in _do_run

run_metadata)


 "/home/jto/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1335, in _do_call

raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Incompatible shapes: [64] vs. [16]

Traceback (most recent call last):


 "train_RNet.py", line 28, in <module>

train_RNet(base_dir, prefix, end_epoch, display, lr)


 "train_RNet.py", line 17, in train_RNet

train(net_factory, prefix, end_epoch, base_dir, display=display, base_lr=lr)


 "/home/wzy/文档/myProjects/MTCNN-Tensorflow-master/train_models/train.py", line 191, in train

_,_,summary = sess.run([train_op, lr_op ,summary_op], feed_dict={input_image: image_batch_array, label: label_batch_array, bbox_target: bbox_batch_array,landmark_target:landmark_batch_array})


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 895, in run

run_metadata_ptr)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1124, in _run

feed_dict_tensor, options, run_metadata)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1321, in _do_run

options, run_metadata)


 "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1340, in _do_call

raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: <exception str() failed>
