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

ValueError: all input arrays must have the same shape #5

Open
huruia opened this issue Mar 31, 2020 · 0 comments
Open

ValueError: all input arrays must have the same shape #5

huruia opened this issue Mar 31, 2020 · 0 comments

Comments

@huruia
Copy link

huruia commented Mar 31, 2020

你好,我在train的时候产生了这个问题:

(CNN) hurui@hurui:~/Humanoid/train$ python train.py -c config.json
2020-03-31 16:44:56,099 epoch: 0
Exception in thread Thread-2:
Traceback (most recent call last):
File "/home/anaconda3/envs/CNN/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/anaconda3/envs/CNN/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/Humanoid/train/loader.py", line 163, in next_batch_producer
self.load_pickles(paths_to_load)
File "/home/Humanoid/train/loader.py", line 119, in load_pickles
stacked_images = np.stack([np.zeros_like(input_data[trace_key][0][0], dtype=np.float32)] * (self.frame_num - 1) + [x[0] for x in input_data[trace_key]], axis=0)
File "/home/anaconda3/envs/CNN/lib/python3.6/site-packages/numpy/core/shape_base.py", line 415, in stack
raise ValueError('all input arrays must have the same shape')
ValueError: all input arrays must have the same shape

非常感谢!

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

1 participant