ZZUTK/Face-Aging-CAAE

why I cann't run this code? Trainning model has this problem,Can anyong tell me how to deal with this problem?

superjiajia26 opened this issue · 2 comments

Traceback (most recent call last):
File "/home/lj/CAAE/main.py", line 43, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "/home/lj/CAAE/main.py", line 32, in main
num_epochs=FLAGS.epoch, # number of epochs
File "/home/lj/CAAE/FaceAging.py", line 424, in train
self.sample(sample_images, sample_label_age, sample_label_gender, name)
File "/home/lj/CAAE/FaceAging.py", line 634, in sample
self.gender: gender
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 766, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 943, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (0,) for Tensor u'input_images:0', which has shape '(100, 128, 128, 3)'

thank you very much!!!

It seems like you didn't successfully load the image data.

Yeah,I know~~~~Thank you!!! It's my carelessness.