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

Method __init__

utils/augmentations.py:377–387  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

375
376class PhotometricDistort(object):
377 def __init__(self):
378 self.pd = [
379 RandomContrast(),
380 ConvertColor(transform='HSV'),
381 RandomSaturation(),
382 RandomHue(),
383 ConvertColor(current='HSV', transform='BGR'),
384 RandomContrast()
385 ]
386 self.rand_brightness = RandomBrightness()
387 self.rand_light_noise = RandomLightingNoise()
388
389 def __call__(self, image, boxes, labels):
390 im = image.copy()

Callers

nothing calls this directly

Calls 6

RandomContrastClass · 0.85
ConvertColorClass · 0.85
RandomSaturationClass · 0.85
RandomHueClass · 0.85
RandomBrightnessClass · 0.85
RandomLightingNoiseClass · 0.85

Tested by

no test coverage detected