MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / __init__

Method __init__

src/data_loader/transform_flow.py:199–205  ·  view source on GitHub ↗
(self, input_size, scales=None, max_distort=1, fix_crop=True, more_fix_crop=True)

Source from the content-addressed store, hash-verified

197
198class GroupMultiScaleCrop(object):
199 def __init__(self, input_size, scales=None, max_distort=1, fix_crop=True, more_fix_crop=True):
200 self.scales = scales if scales is not None else [1, .875, .75, .66]
201 self.max_distort = max_distort
202 self.fix_crop = fix_crop
203 self.more_fix_crop = more_fix_crop
204 self.input_size = input_size if not isinstance(input_size, int) else [input_size, input_size]
205 self.interpolation = Image.BILINEAR
206
207 def __call__(self, img_group):
208

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected