YuliangXiu/ICON

求助大佬一个问题,关于运行render时发送的错误

Closed this issue · 5 comments

在运行以下代码时发送报错,

python -m scripts.render_batch -headless -out_dir data/

报错:
multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x7f9cd8ac4ee0>'. 
Reason: 'ValueError('ctypes objects containing pointers cannot be pickled')'

根据网上的方法,将PROC_PER_GPU = mp.cpu_count() // NUM_GPUS 改为PROC_PER_GPU = 0,同时NUM_GPUS设置为1。

之后可以运行,但是进度卡在,如下,同时GPU也未在工作状态

Start Rendering thuman2 with 36 views, 512x512 size.
Output dir: data//thuman2_36views
Rendering types: ['light', 'normal']
  0%|                    | 0/526 [00:00<?, ?it/s]

请问我该如何成功运行这个?

Maybe #62 (comment) could resolve this problem.

在运行以下代码时发送报错,

python -m scripts.render_batch -headless -out_dir data/

报错:
multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x7f9cd8ac4ee0>'. 
Reason: 'ValueError('ctypes objects containing pointers cannot be pickled')'

根据网上的方法,将PROC_PER_GPU = mp.cpu_count() // NUM_GPUS 改为PROC_PER_GPU = 0,同时NUM_GPUS设置为1。

之后可以运行,但是进度卡在,如下,同时GPU也未在工作状态

Start Rendering thuman2 with 36 views, 512x512 size.
Output dir: data//thuman2_36views
Rendering types: ['light', 'normal']
  0%|                    | 0/526 [00:00<?, ?it/s]

请问我该如何成功运行这个?

兄弟,你解决了吗,我重新安装了pyembree和trimesh,尝试了好几个版本还是不行

我也一样,重新安装了pyembree和trimesh也不行,感觉是不是multiprocessing的问题啊

I faced the same issue, I confirm the problem is at mesh.ray.intersect_any. The reason is because it doesn't use pyembree but the default trimesh intersection function.

You have to install pyembree properly. Please refer to this: https://github.com/YuxuanSnow/ICON/blob/yuxuan_branch/docs/dataset.md

After your install the proper embree and trimesh call them during intersect function, it takes about 0.5s to process 3M points.

I faced the same issue, I confirm the problem is at mesh.ray.intersect_any. The reason is because it doesn't use pyembree but the default trimesh intersection function.

You have to install pyembree properly. Please refer to this: https://github.com/YuxuanSnow/ICON/blob/yuxuan_branch/docs/dataset.md

After your install the proper embree and trimesh call them during intersect function, it takes about 0.5s to process 3M points.

Hello! Could you please tell me your version of embree, pyembree and trimesh? I tried to uninstall and reinstall pyembree and trimesh but it doesn't work.