kaolin.rep

API

class kaolin.rep.Spc(octrees, lengths, max_level=None, pyramids=None, exsum=None, point_hierarchies=None)

Bases: object

Class containing all the Structured point clouds information

KEYS = {'exsum', 'lengths', 'max_level', 'octrees', 'point_hierarchies', 'pyramids'}
property batch_size
cpu(memory_format=torch.preserve_format)
cuda(device='cuda', non_blocking=False, memory_format=torch.preserve_format)
property exsum
classmethod from_list(octrees_list)

Generate an Spc from a list of octrees.

Parameters

octrees_list (list of torch.ByteTensor) – list containing multiple 1D torch.ByteTensor, each representing an octree.

Returns

a new Spc.

Return type

(kaolin.rep.Spc)

property max_level
property point_hierarchies
property pyramids
to(device, non_blocking=False, memory_format=torch.preserve_format)
to_dict(keys=None)