How to release the memory in the loop of ray sampling #1389
Unanswered
boringfish
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @boringfish Could you provide us with a full script ? We're currently missing the I didn't spot anything obvious. However, one thing that came to mind is the following issue: mitsuba-renderer/drjit#137 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, everyone. I'm trying to create a radiosity dataset. Specifically, I load a scene, transform the scene parameters each time through a for loop, shoot a ray and calculate the radiosity at the intersection point. Here is my code:
However, I found that the memory occupied by the Python program would increase rapidly in each loop and eventually reach the upper limit of the system. A similar issue can be seen in discussion 1171. I tried to use cleanup() in each loop but the program went wrong. I guess the reason is that the scene is shared between each loop. Therefore, is there any good way to release the memory used in each loop? Thanks a lot for your help.
Beta Was this translation helpful? Give feedback.
All reactions