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

想问下作者为什么将scan.reshape((-1, 4))改成scan.reshape((-1, 5)),rings有何作用 #5

Open
haoyuting98 opened this issue Nov 24, 2022 · 0 comments

Comments

@haoyuting98
Copy link

File "infer.py", line 109, in
user.infer()
File "../../tasks/semantic/modules/user.py", line 93, in infer
to_orig_fn=self.parser.to_original)
File "../../tasks/semantic/modules/user.py", line 110, in infer_subset
for i, (proj_in, proj_mask, _, _, path_seq, path_name, p_x, p_y, proj_range, unproj_range, _, _, _, _, npoints) in enumerate(loader):
File "/home/pc405/anaconda3/envs/rangnetpy36/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in next
data = self._next_data()
File "/home/pc405/anaconda3/envs/rangnetpy36/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1085, in _next_data
return self._process_data(data)
File "/home/pc405/anaconda3/envs/rangnetpy36/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data
data.reraise()
File "/home/pc405/anaconda3/envs/rangnetpy36/lib/python3.6/site-packages/torch/_utils.py", line 428, in reraise
raise self.exc_type(msg)
ValueError: Caught ValueError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/pc405/anaconda3/envs/rangnetpy36/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/home/pc405/anaconda3/envs/rangnetpy36/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/pc405/anaconda3/envs/rangnetpy36/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "../..//tasks/semantic/dataset/kitti/parser.py", line 132, in getitem
scan.open_scan(scan_file)
File "../../common/laserscan.py", line 78, in open_scan
scan = scan.reshape((-1, 5))
ValueError: cannot reshape array of size 498672 into shape (5)
现在这里报错,我是应该把5改回4吗

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