2K2K icon indicating copy to clipboard operation
2K2K copied to clipboard

Rendering memory limit

Open avbelob opened this issue 1 year ago • 3 comments

Hello! I am trying to render 2K2K dataset via render.py. But in the process of performing the script, I have the end of the CPU memory, although I have about 80GB free space in RAM. Despite this, if I reduce the resolution of the picture to 256, everything works. Please tell me how much memory of the CPU is needed to make a script with an image with a resolution of 2048.

avbelob avatar Jan 16 '24 10:01 avbelob

image

It seems strange. Even I rendered with 2048 resolution, it only requires 2~3GB RAM memory. Can you check trimesh==3.23.5 version??

SangHunHan92 avatar Jan 18 '24 05:01 SangHunHan92

Hi, I have the same issue here, and it seems like the code stuck here:

pers_points, pers_index_ray, pers_index_tri = mesh.ray.intersects_location(
    pers_origins, pers_vectors, multiple_hits=True)

in render_utils.py line 173 and then the memory consumption keeps going up.

ZhenhuiL1n avatar Jun 02 '24 17:06 ZhenhuiL1n

Hi, I think the problem is because the rtree required by trimesh, and it can be solved by installing trimesh using:

pip install trimesh[easy]

make sure uninstall the original trimesh and rtree you installed.

ZhenhuiL1n avatar Jun 02 '24 17:06 ZhenhuiL1n