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

Issue with Data Processing in 'render_batch' Command #228

Open
SLAGworld opened this issue Aug 15, 2023 · 0 comments
Open

Issue with Data Processing in 'render_batch' Command #228

SLAGworld opened this issue Aug 15, 2023 · 0 comments

Comments

@SLAGworld
Copy link

Hello,

I am currently running the 'render_batch' script from your GitHub repository and encountered an issue while executing the command python -m scripts.render_batch -headless -out_dir data/.

After thorough investigation, I believe the problem might be related to data entry with the index number '0030'. The script seems to encounter an error when processing this specific data entry.

Traceback (most recent call last):
File "/root/miniconda3/envs/icon/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/root/autodl-tmp/ICON/scripts/render_batch.py", line 99, in render_subject
prt, face_prt = prt_util.computePRT(mesh_file, scale, 10, 2)
File "/root/autodl-tmp/ICON/lib/renderer/prt_util.py", line 128, in computePRT
F = np.load(face_path)
File "/root/miniconda3/envs/icon/lib/python3.8/site-packages/numpy/lib/npyio.py", line 430, in load
return format.read_array(fid, allow_pickle=allow_pickle,
File "/root/miniconda3/envs/icon/lib/python3.8/site-packages/numpy/lib/format.py", line 786, in read_array
array.shape = shape
ValueError: cannot reshape array of size 1056752 into shape (500000,3)
"""

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

Traceback (most recent call last):
File "/root/miniconda3/envs/icon/lib/python3.8/runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/root/miniconda3/envs/icon/lib/python3.8/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/autodl-tmp/ICON/scripts/render_batch.py", line 254, in
for _ in tqdm(
File "/root/miniconda3/envs/icon/lib/python3.8/site-packages/tqdm/std.py", line 1178, in iter
for obj in iterable:
File "/root/miniconda3/envs/icon/lib/python3.8/multiprocessing/pool.py", line 865, in next
raise value
ValueError: cannot reshape array of size 1056752 into shape (500000,3)

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