wenbin-lin / OcclusionFusion

OcclusionFusion: realtime dynamic 3D reconstruction based on single-view RGB-D
https://wenbin-lin.github.io/OcclusionFusion/
260 stars 42 forks source link

Decrease GPU memory usage #14

Open Barbany opened 2 years ago

Barbany commented 2 years ago

There were issues regarding the high memory usage. I couldn't run the demo myself due to CUDA out-of-memory errors.

The solution is to avoid computing gradients at the forward step. As it was before, the gradients accumulate at each iteration since they are not used. This results in linearly increasing memory usage to store unnecessary tensors.