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

Method set_prob

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

Source from the content-addressed store, hash-verified

80 self.prob = prob
81 self.fp16_enable = False
82 def set_prob(self, epoch, max_epoch):
83 self.prob = self.st_prob * epoch / max_epoch #+ 1.#0.5
84 @auto_fp16()
85 def forward(self, x):
86 if np.random.rand() > self.prob or not self.training:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected