YuliangXiu/ICON

Issue with Data Processing in 'render_batch' Command

Opened this issue · 0 comments

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)