Data preparation memory leak
kampelmuehler opened this issue · comments
For me when running the rendering pipeline in a loop over multiple objs (
Line 147 in f0a9c99
Only workaround I've found is to respawn the entire render pipeline for every single instance (i.e. mesh). Has anyone else had any issues and found a solution?
I think this might be because this function is never called:
PIFu/lib/renderer/gl/prt_render.py
Line 198 in f0a9c99
calling it within the render loop hinders the infinite memory growth.
Be aware that it fails at this statement though
PIFu/lib/renderer/gl/prt_render.py
Line 212 in f0a9c99
which I think is safe to remove.
It should then be safe to call rndr.cleanup()
(and potentially rndr_uv.cleanup()
) after every finished obj.
btw: there's a small leak remaining but not nearly as scary.