MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __init__

Method __init__

tensorpack/dataflow/imgaug/misc.py:44–51  ·  view source on GitHub ↗

Args: shape: (h, w) tuple or a int interp: cv2 interpolation method

(self, shape, interp=cv2.INTER_LINEAR)

Source from the content-addressed store, hash-verified

42 """ Resize image to a target size"""
43
44 def __init__(self, shape, interp=cv2.INTER_LINEAR):
45 """
46 Args:
47 shape: (h, w) tuple or a int
48 interp: cv2 interpolation method
49 """
50 shape = tuple(shape2d(shape))
51 self._init(locals())
52
53 def get_transform(self, img):
54 return ResizeTransform(

Callers

nothing calls this directly

Calls 2

shape2dFunction · 0.85
_initMethod · 0.45

Tested by

no test coverage detected