Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot feed value of shape (64, 64, 64) for Tensor 'real_images:0', which has shape '(?, 64, 64, 3)' #78

Open
roshan-raj opened this issue Feb 6, 2019 · 1 comment

Comments

@roshan-raj
Copy link

[*] Reading checkpoints...

======
An existing model was found in the checkpoint directory.
If you just cloned this repository, it's a model for faces
trained on the CelebA dataset for 20 epochs.
If you want to train a new model from scratch,
delete the checkpoint directory or specify a different
--checkpoint_dir argument.

Traceback (most recent call last):
File "train-dcgan.py", line 41, in
dcgan.train(FLAGS)
File "E:\Engineering\7th SEM\Final Project 2\Referal Codes\dcgan-completion.tensorflow\model.py", line 212, in train
feed_dict={ self.images: batch_images, self.z: batch_z, self.is_training: True })
File "C:\Users\Dell\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\Users\Dell\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\client\session.py", line 1128, in _run
str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (64, 64, 64) for Tensor 'real_images:0', which has shape '(?, 64, 64, 3)'

@roshan-raj roshan-raj changed the title Getting error while running the code Cannot feed value of shape (64, 64, 64) for Tensor 'real_images:0', which has shape '(?, 64, 64, 3)' Feb 6, 2019
@leilyb
Copy link

leilyb commented Feb 23, 2019

Hi ,
Your images should be 64*64 size and RGB. If the images are not RGB, you should change the value of 'c_dim' to 1(originaly this value is 3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants