ZZUTK / Face-Aging-CAAE

Age Progression/Regression by Conditional Adversarial Autoencoder
636 stars 233 forks source link

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

Closed superjiajia26 closed 6 years ago

superjiajia26 commented 6 years ago

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!!!