MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / __init__

Method __init__

dataload/loader.py:76–81  ·  view source on GitHub ↗
(self, height=32, max_width=280, types='train')

Source from the content-addressed store, hash-verified

74
75class resizeNormalize(object):
76 def __init__(self, height=32, max_width=280, types='train'):
77 assert types in ['train','val','test']
78 self.toTensor = transforms.ToTensor()
79 self.max_width = max_width
80 self.types = types
81 self.height = height
82 def __call__(self, img):
83 if (self.types == 'train' or self.types == 'val'):
84 w, h = img.size

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected