MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / __init__

Method __init__

transforms/transforms.py:137–139  ·  view source on GitHub ↗
(self, size, interpolation=Image.BILINEAR)

Source from the content-addressed store, hash-verified

135
136class FreeScale(object):
137 def __init__(self, size, interpolation=Image.BILINEAR):
138 self.size = tuple(reversed(size)) # size: (h, w)
139 self.interpolation = interpolation
140
141 def __call__(self, img):
142 return img.resize(self.size, self.interpolation)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected