NVIDIAGameWorks / kaolin-wisp

NVIDIA Kaolin Wisp is a PyTorch library powered by NVIDIA Kaolin Core to work with neural fields (including NeRFs, NGLOD, instant-ngp and VQAD).
Other
1.45k stars 132 forks source link

fix packed_rf_tracer memory leaks or incorrect data usage. #191

Open imhunterand opened 2 weeks ago

imhunterand commented 2 weeks ago

Some patch changes were made:

  1. Ensured assert is fixed to check nef.grid.
  2. Added deletion of unneeded variables after use to preserve memory usage.
  3. Ensured variables used to calculate values inside loops are properly deleted to avoid memory leaks or incorrect data usage.
imhunterand commented 2 weeks ago

issue #143

https://github.com/NVIDIAGameWorks/kaolin-wisp/blob/cb47e10f376e5ac8b6965c650d8a6b85b9bc968e/wisp/tracers/packed_rf_tracer.py#L148-L153