MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / __init__

Method __init__

netdissect/broden.py:211–213  ·  view source on GitHub ↗
(self, target_height, target_width)

Source from the content-addressed store, hash-verified

209 Utility for scaling segmentations, using nearest-neighbor zooming.
210 '''
211 def __init__(self, target_height, target_width):
212 self.target_height = target_height
213 self.target_width = target_width
214 def __call__(self, seg):
215 ratio = (1, self.target_height / float(seg.shape[1]),
216 self.target_width / float(seg.shape[2]))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected