MCPcopy Create free account
hub / github.com/JMoonr/LATR / __init__

Method __init__

data/transform.py:43–51  ·  view source on GitHub ↗
(self,
                 brightness_delta=32,
                 contrast_range=(0.5, 1.5),
                 saturation_range=(0.5, 1.5),
                 hue_delta=18)

Source from the content-addressed store, hash-verified

41 """
42
43 def __init__(self,
44 brightness_delta=32,
45 contrast_range=(0.5, 1.5),
46 saturation_range=(0.5, 1.5),
47 hue_delta=18):
48 self.brightness_delta = brightness_delta
49 self.contrast_lower, self.contrast_upper = contrast_range
50 self.saturation_lower, self.saturation_upper = saturation_range
51 self.hue_delta = hue_delta
52
53 def __call__(self, results):
54 """Call function to perform photometric distortion on images.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected