MCPcopy Create free account
hub / github.com/apple/ml-4m / __init__

Method __init__

fourm/data/image_augmenter.py:129–132  ·  view source on GitHub ↗
(self, target_size, hflip=0.0, main_domain='rgb')

Source from the content-addressed store, hash-verified

127
128class PaddingImageAugmenter(AbstractImageAugmenter):
129 def __init__(self, target_size, hflip=0.0, main_domain='rgb'):
130 self.target_size = to_2tuple(target_size)
131 self.hflip = hflip
132 self.main_domain = main_domain
133
134 def __call__(self, mod_dict, crop_settings):
135 image = mod_dict[self.main_domain] if self.main_domain is not None else mod_dict[list(mod_dict.keys())[0]]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected