MCPcopy
hub / github.com/erikwijmans/Pointnet2_PyTorch / randomize

Method randomize

pointnet2/data/ModelNet40Loader.py:82–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 self.actual_number_of_points = pts
81
82 def randomize(self):
83 self.actual_number_of_points = min(
84 max(
85 np.random.randint(self.num_points * 0.8, self.num_points * 1.2),
86 1
87 ), self.points.shape[1]
88 )
89
90
91if __name__ == "__main__":

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected