andyzeng / 3dmatch-toolbox

3DMatch - a 3D ConvNet-based local geometric descriptor for aligning 3D meshes and point clouds.
http://3dmatch.cs.princeton.edu/
BSD 2-Clause "Simplified" License
836 stars 189 forks source link

memory leak #10

Closed againxx closed 6 years ago

againxx commented 6 years ago

Hi, I have been using this great 3d descriptor to do some works about 3d matching. But I found that the usage of GPU's memory was growing up increasely. Have you found this phenomenon?

andyzeng commented 6 years ago

Hello, does the memory leak occur during training? Or during the demo?

againxx commented 6 years ago

During the demo, I just used the demo net to compute descriptors of several hundreds of objects. It seems that the destructor of the Net class doesn't free all the resource of GPU. I finally fixed it up by using singleton pattern to make the Net class constructed only once.