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

Method _impl

tensorpack/dataflow/imgaug/paste.py:104–110  ·  view source on GitHub ↗
(self, img, loc)

Source from the content-addressed store, hash-verified

102 return TransformFactory(name=str(self), apply_image=lambda img: self._impl(img, l))
103
104 def _impl(self, img, loc):
105 x0, y0 = loc
106 img_shape = img.shape[:2]
107 background = self.background_filler.fill(
108 self.background_shape, img)
109 background[y0:y0 + img_shape[0], x0:x0 + img_shape[1]] = img
110 return background

Callers 1

get_transformMethod · 0.95

Calls 1

fillMethod · 0.80

Tested by

no test coverage detected