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

Method get_transform

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

Source from the content-addressed store, hash-verified

87 a.reset_state()
88
89 def get_transform(self, img):
90 # Note: this makes assumption that the augmentors do not make changes
91 # to the image that will affect how the transforms will be instantiated
92 # in the subsequent augmentors.
93 idxs = self.rng.permutation(len(self.aug_lists))
94 tfms = [self.aug_lists[k].get_transform(img)
95 for k in range(len(self.aug_lists))]
96 return TransformList([tfms[k] for k in idxs])
97
98
99class MapImage(ImageAugmentor):

Callers

nothing calls this directly

Calls 2

TransformListClass · 0.85
get_transformMethod · 0.45

Tested by

no test coverage detected