MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / get_transform

Method get_transform

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

Source from the content-addressed store, hash-verified

63 a.reset_state()
64
65 def get_transform(self, img):
66 aug_idx = self.rng.choice(len(self.aug_lists), p=self.prob)
67 return self.aug_lists[aug_idx].get_transform(img)
68
69
70class RandomOrderAug(ImageAugmentor):

Callers

nothing calls this directly

Calls 1

get_transformMethod · 0.45

Tested by

no test coverage detected