MCPcopy Create free account
hub / github.com/apple/ml-pointersect / reset_valid_mask

Method reset_valid_mask

pointersect/inference/structures.py:709–718  ·  view source on GitHub ↗

set all points as valid

(self)

Source from the content-addressed store, hash-verified

707 self.valid_mask[:, 0] = 0
708
709 def reset_valid_mask(self):
710 """set all points as valid"""
711 if self.valid_mask is None:
712 return
713 b, n, _dim = self.xyz_w.shape
714 self.valid_mask = torch.ones(
715 b, n, 1,
716 dtype=torch.bool, device=self.xyz_w.device)
717 if self.included_point_at_inf:
718 self.valid_mask[:, 0] = 0
719
720 def rasterize_surfel(
721 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected