ZZUTK / Face-Aging-CAAE

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

Problems when running the model #8

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello~ When I am running your code,the error look like this image I don't know where go wrong,Could you help me ?

micko-mi commented 7 years ago

Hello~!! Hello~!! me too image who can tell me ?

akakakakakaa commented 7 years ago

Maybe Dataset image must be in a folder named UTKFace and UTKFace folder must be in your test folder

superjiajia26 commented 6 years ago

I have the same questions too.Can you tell me how to solve this problem? Thank you very much~~~ 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)'

Hope for your replying!

taehee33 commented 6 years ago

Put the utkFace folder in the data Folder

ajaysimhasr commented 5 years ago

Hi,

I am running your code on Ubuntu 16.0.4.

Even I am facing the same error as above. The 'UTKFace' dataset is inside the folder 'data'. Still I have this issue.

Can you help me with this please?

Error Log:

$ python main.py

Namespace(dataset='UTKFace', epoch=50, is_train=True, savedir='save', testdir='None', use_init_model=True, use_trained_model=True)

Building graph ...

Training Mode

Loading pre-trained model ...
FAILED >_<!

Loading init model ...

Traceback (most recent call last): File "main.py", line 70, in tf.app.run() File "/home/codas/anaconda3/envs/MITA_2018_Capstone/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "main.py", line 59, in main use_init_model=FLAGS.use_init_model File "/home/codas/Documents/Ajay/MITA_2018_Capstone/Tensorflow_AgeProgression/Face-Aging-CAAE/FaceAging.py", line 435, in train self.sample(sample_images, sample_label_age, sample_label_gender, name) File "/home/codas/Documents/Ajay/MITA_2018_Capstone/Tensorflow_AgeProgression/Face-Aging-CAAE/FaceAging.py", line 652, in sample self.gender: gender File "/home/codas/anaconda3/envs/MITA_2018_Capstone/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run run_metadata_ptr) File "/home/codas/anaconda3/envs/MITA_2018_Capstone/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1128, in _run str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (0,) for Tensor 'input_images:0', which has shape '(100, 128, 128, 3)'

ArashHosseini commented 5 years ago

@ajaysimhasr https://github.com/ZZUTK/Face-Aging-CAAE/blob/d59275f00af647c8fc333f79c016fb9cf69d4c7b/FaceAging.py#L195 requires a flat list of images, your UTKFace folder shouldn't contain nothing else then images

Alzahraa-Ahmed commented 5 years ago

Hi, Where to download the pre-trained model?