MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / __init__

Method __init__

tensorpack/dataflow/imgaug/imgproc.py:203–209  ·  view source on GitHub ↗

Args: range(list or tuple): gamma range

(self, range=(-0.5, 0.5))

Source from the content-addressed store, hash-verified

201class Gamma(PhotometricAugmentor):
202 """ Randomly adjust gamma """
203 def __init__(self, range=(-0.5, 0.5)):
204 """
205 Args:
206 range(list or tuple): gamma range
207 """
208 super(Gamma, self).__init__()
209 self._init(locals())
210
211 def _get_augment_params(self, _):
212 return self._rand_range(*self.range)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
_initMethod · 0.45

Tested by

no test coverage detected