carpedm20 / carpedm20/DCGAN-tensorflow

use my datasets. IndexError: too many indices for array

Open
#275 0 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

File "main.py", line 99, in
tf.app.run()

python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))

File "main.py", line 82, in main
dcgan.train(FLAGS)

sample_inputs = np.array(sample).astype(np.float32)[:, :, :, None]
IndexError: too many indices for array

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with main.py around the sample construction and the failing np.array(sample).astype(np.float32)[:, :, :, None] expression. Reproduce the error using the reporter’s dataset if available, then inspect the resulting array shape and compare it with the input shape expected by the training path. Done means custom datasets can reach dcgan.train without this IndexError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.