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

Class FreeScale

transforms/transforms.py:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
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)
143
144
145class FlipChannels(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected