MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __init__

Method __init__

tensorpack/dataflow/imgaug/misc.py:159–165  ·  view source on GitHub ↗

Args: prob (float): probability of transpose.

(self, prob=0.5)

Source from the content-addressed store, hash-verified

157 Random transpose the image
158 """
159 def __init__(self, prob=0.5):
160 """
161 Args:
162 prob (float): probability of transpose.
163 """
164 super(Transpose, self).__init__()
165 self.prob = prob
166
167 def get_transform(self, _):
168 if self.rng.rand() < self.prob:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected