NVIDIAGameWorks / kaolin

A PyTorch Library for Accelerating 3D Deep Learning Research
Apache License 2.0
4.43k stars 542 forks source link

SPC: support creation with empty octrees. #716

Open orperel opened 1 year ago

orperel commented 1 year ago

Creating a SPC with an empty octree of 0 LODs (octree is a tensor of [0]) fails.

Suggested fix: update kaolin.ops.spc.scan_octrees to return an empty torch.Tensor when octrees is a tensor of [0].

sparse-mvs-2 commented 4 months ago

I face the same problem. Besides I found that spc at any level of LOD with octrees all empty ( that is, spc.octrees = [0,0,0,0,...,0]) is not supported. Now I have to judge this situation by summation.