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

Method __init__

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

Source from the content-addressed store, hash-verified

169
170class RandomContrast(object):
171 def __init__(self, lower=0.5, upper=1.5):
172 self.lower = lower
173 self.upper = upper
174 assert self.upper >= self.lower, "contrast upper must be >= lower."
175 assert self.lower >= 0, "contrast lower must be non-negative."
176
177 # expects float image
178 def __call__(self, image, boxes=None, labels=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected