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

Method get_transform

tensorpack/dataflow/imgaug/meta.py:115–119  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

113 self.coord_func = coord_func
114
115 def get_transform(self, img):
116 if self.coord_func:
117 return TransformFactory(name="MapImage", apply_image=self.func, apply_coords=self.coord_func)
118 else:
119 return TransformFactory(name="MapImage", apply_image=self.func)

Callers

nothing calls this directly

Calls 1

TransformFactoryClass · 0.85

Tested by

no test coverage detected