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

s3dis array concatenate #45

Open
ILOVEppt opened this issue Aug 22, 2023 · 1 comment
Open

s3dis array concatenate #45

ILOVEppt opened this issue Aug 22, 2023 · 1 comment

Comments

@ILOVEppt
Copy link

Hi,here is a problem!
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/jsjlab/anaconda3/envs/pcr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/jsjlab/anaconda3/envs/pcr/lib/python3.8/multiprocessing/pool.py", line 51, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "pcr/datasets/preprocessing/s3dis/preprocess_s3dis.py", line 60, in parse_room
room_coords = np.ascontiguousarray(np.vstack(room_coords))
File "<array_function internals>", line 5, in vstack
File "/home/jsjlab/anaconda3/envs/pcr/lib/python3.8/site-packages/numpy/core/shape_base.py", line 283, in vstack
return _nx.concatenate(arrs, 0)
File "<array_function internals>", line 5, in concatenate
ValueError: need at least one array to concatenate
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "pcr/datasets/preprocessing/s3dis/preprocess_s3dis.py", line 116, in
main_process()
File "pcr/datasets/preprocessing/s3dis/preprocess_s3dis.py", line 109, in main_process
pool.starmap(parse_room, [(room, opt.dataset_root, opt.output_root, opt.parse_normals)
File "/home/jsjlab/anaconda3/envs/pcr/lib/python3.8/multiprocessing/pool.py", line 372, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "/home/jsjlab/anaconda3/envs/pcr/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
ValueError: need at least one array to concatenate

Can you help me?Thank you!

@baby-penguin
Copy link

There maybe some files like ._celing_1.txt in your dataset, in preprocess.py, use if ((room_name != ".DS_Store" and not room_name.startswith(".") ) and ".txt" not in room_name)]

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

2 participants