ValueError: all input arrays must have the same shape #1935
Unanswered
Git-pengyu
asked this question in
Q&A
Replies: 1 comment 1 reply
-
输入的数据shape不一致,请检查一下数据增强 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I have an error showing like this. I used exactly the same data set and it work the first time then it start showing this error, Could anyone help me with it? Thank you
有如下报错,同一个数据集,第一次成功训练,之后就不不行了. 是哪里出了问题? 感谢!
`W0328 15:56:13.830188 278743 device_context.h:397] WARNING: device: 0. The installed Paddle is compiled with CUDNN 8.1, but CUDNN version in your machine is 7.6, which may cause serious incompatible bug. Please recompile or reinstall Paddle with compatible CUDNN version.
Traceback (most recent call last):
File "train.py", line 199, in
main(args)
File "train.py", line 194, in main
to_static_training=cfg.to_static_training)
File "/twork/pzhao/PaddleSeg-release-2.4/paddleseg/core/train.py", line 158, in train
for data in loader:
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/dataloader_iter.py", line 697, in next
data = self.reader.read_next_var_list()
SystemError: (Fatal) Blocking queue is killed because the data reader raises an exception.
[Hint: Expected killed != true, but received killed_:1 == true:1.] (at /paddle/paddle/fluid/operators/reader/blocking_queue.h:166)
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/dataloader_iter.py", line 505, in _thread_loop
batch = self._get_data()
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/dataloader_iter.py", line 634, in _get_data
batch.reraise()
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/worker.py", line 169, in reraise
raise self.exc_type(msg)
ValueError: DataLoader worker(2) caught ValueError with message:
Traceback (most recent call last):
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/worker.py", line 329, in _worker_loop
batch = fetcher.fetch(indices)
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/fetcher.py", line 134, in fetch
data = self.collate_fn(data)
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/collate.py", line 77, in default_collate_fn
return [default_collate_fn(fields) for fields in zip(*batch)]
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/collate.py", line 77, in
return [default_collate_fn(fields) for fields in zip(*batch)]
File "/home/pzhao/.local/lib/python3.6/site-packages/paddle/fluid/dataloader/collate.py", line 58, in default_collate_fn
batch = np.stack(batch, axis=0)
File "<array_function internals>", line 6, in stack
File
"/usr/local/lib/python3.6/site-packages/numpy/core/shape_base.py",
line 425, in stackraise ValueError('all input arrays must have the same shape')
ValueError: all input arrays must have the same shape
`
Beta Was this translation helpful? Give feedback.
All reactions