MCPcopy Create free account
hub / github.com/amdegroot/ssd.pytorch / __init__

Method __init__

utils/augmentations.py:115–119  ·  view source on GitHub ↗
(self, lower=0.5, upper=1.5)

Source from the content-addressed store, hash-verified

113
114class RandomSaturation(object):
115 def __init__(self, lower=0.5, upper=1.5):
116 self.lower = lower
117 self.upper = upper
118 assert self.upper >= self.lower, "contrast upper must be >= lower."
119 assert self.lower >= 0, "contrast lower must be non-negative."
120
121 def __call__(self, image, boxes=None, labels=None):
122 if random.randint(2):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected