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

Method __init__

tensorpack/dataflow/imgaug/misc.py:65–71  ·  view source on GitHub ↗

Args: size (int): the size to resize the shortest edge to.

(self, size, interp=cv2.INTER_LINEAR)

Source from the content-addressed store, hash-verified

63 """
64
65 def __init__(self, size, interp=cv2.INTER_LINEAR):
66 """
67 Args:
68 size (int): the size to resize the shortest edge to.
69 """
70 size = int(size)
71 self._init(locals())
72
73 def get_transform(self, img):
74 h, w = img.shape[:2]

Callers

nothing calls this directly

Calls 1

_initMethod · 0.45

Tested by

no test coverage detected