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

Method apply_image

tensorpack/dataflow/imgaug/transform.py:330–333  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

328 self._transform = None
329
330 def apply_image(self, img):
331 if not self._transform:
332 self._transform = self.get_transform(img)
333 return self._transform.apply_image(img)
334
335 def _apply(self, x, meth):
336 assert self._transform is not None, \

Callers

nothing calls this directly

Calls 2

get_transformMethod · 0.45
apply_imageMethod · 0.45

Tested by

no test coverage detected