MCPcopy Create free account
hub / github.com/OpenDriveLab/OccNet / set_prob

Method set_prob

projects/mmdet3d_plugin/models/utils/grid_mask.py:18–19  ·  view source on GitHub ↗
(self, epoch, max_epoch)

Source from the content-addressed store, hash-verified

16 self.prob = prob
17
18 def set_prob(self, epoch, max_epoch):
19 self.prob = self.st_prob * epoch / max_epoch
20
21 def __call__(self, img, label):
22 if np.random.rand() > self.prob:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected