carpedm20 / carpedm20/DCGAN-tensorflow

ValueError: Cannot feed value of shape (64, 218, 178, 3) for Tensor 'real_images:0', which has shape '(64, 64, 64, 3)'

Open
#373 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

I am getting the following error when trying to train the model using the celebA dataset. Load fails to find a checkpoint, which makes sense since there are no checkpoints. Then the following error occurs. I have pasted some of the last output along with the stacktrace. I would appreciate any and all help
```
Total size of variables: 9451908
Total bytes of variables: 37807632
[*] Reading checkpoints... ./out\20200116.161511 - data - celebA -x108.z100.uniform_signed.y64.b64\checkpoint
[*] Failed to find a checkpoint
[!] Load failed...
Traceback (most recent call last):
File "main.py", line 147, in
tf.app.run()
File "C:\Users\...\.conda\envs\py3\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "main.py", line 120, in main
dcgan.train(FLAGS)
File "C:\Users\...\Documents\DCGAN-tensorflow-master\model.py", line 279, in train
feed_dict={ self.inputs: batch_images, self.z: batch_z })
File "C:\Users\...\.conda\envs\py3\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\Users\...\.conda\envs\py3\lib\site-packages\tensorflow\python\client\session.py", line 1128, in _run
str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (64, 218, 178, 3) for Tensor 'real_images:0', which has shape '(64, 64, 64, 3)'
```

Thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with main.py and model.py, especially model.py around the training call at line 279, and compare the dataset batch shape in the traceback with the real_images tensor shape. Check how CelebA images are loaded and resized, then run the training path to confirm that the fed batch matches the declared tensor dimensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.