carpedm20 / carpedm20/DCGAN-tensorflow

crash after recent commits: assert manifold_w * manifold_h == num_images

Open
#193 4 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

Got problem while saving the samples:

```
Traceback (most recent call last):
File "main.py", line 97, in
tf.app.run()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 80, in main
dcgan.train(FLAGS)
File "/home/prota/Downloads/DCGAN-tensorflow-master/model.py", line 298, in train
save_images(samples, image_manifold_size(samples.shape[0]),
File "/home/prota/Downloads/DCGAN-tensorflow-master/utils.py", line 249, in image_manifold_size
assert manifold_w * manifold_h == num_images
AssertionError
```
manifold_w == 8 while manifold_h == 64. should be both 8 if images are 64?

Contributor guide

No contributing guide indexed for this repository

Research direction

Read model.py around the train function's save_images call, then inspect utils.py:image_manifold_size and the reported manifold dimensions. Reproduce the sample-saving path from main.py; done means the assertion passes with the intended manifold dimensions and samples are saved without the crash.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.