carpedm20 / carpedm20/simulated-unsupervised-tensorflow
ValueError: all input arrays must have the same shape
- Dominant language
- Python
- Stars
- 575
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
Hello, when I prepared dastaset and tried to run ur code , this problem happened, I don't know what's wrong, could u please help me out, thank u!
**[*] MODEL dir: logs/generative_2017-09-18_16-23-09
[*] PARAM path: logs/generative_2017-09-18_16-23-09/params.json
[*] Training starts...
Traceback (most recent call last):
File "main.py", line 29, in
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "/home/zhangboshen/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 21, in main
trainer.train()
File "/home/zhangboshen/src/tensorflow/simulated-unsupervised-tensorflow/trainer.py", line 83, in train
self.data_loader.synthetic_data_paths[idxs]]
File "/home/zhangboshen/anaconda2/lib/python2.7/site-packages/numpy/core/shape_base.py", line 347, in stack
raise ValueError('all input arrays must have the same shape')
ValueError: all input arrays must have the same shape**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with trainer.py at line 83 and trace the data_loader.synthetic_data_paths values passed to NumPy stack, then inspect the dataset preparation and the training entry point in main.py. Reproduce the reported run and compare the input array shapes; done means the prepared dataset reaches trainer.train() without the ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, tensorflow
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100