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

Method __init__

tensorpack/dataflow/imgaug/crop.py:44–50  ·  view source on GitHub ↗

Args: crop_shape: (h, w) tuple or a int

(self, crop_shape)

Source from the content-addressed store, hash-verified

42 """ Crop the image at the center"""
43
44 def __init__(self, crop_shape):
45 """
46 Args:
47 crop_shape: (h, w) tuple or a int
48 """
49 crop_shape = shape2d(crop_shape)
50 self._init(locals())
51
52 def get_transform(self, img):
53 orig_shape = img.shape

Callers

nothing calls this directly

Calls 2

shape2dFunction · 0.85
_initMethod · 0.45

Tested by

no test coverage detected