(self, args)
| 5 | |
| 6 | class Augmentor: |
| 7 | def __init__(self, args): |
| 8 | |
| 9 | H, W = args.image_size |
| 10 | |
| 11 | self.tnf_list = ['affine', 'hom', 'tps'] |
| 12 | self.tnf_generators = {tnf: SynthPairTnf(geometric_model=tnf, output_size=(H, W), use_cuda=False) for tnf in self.tnf_list} |
| 13 | self.theta_generator = {tnf: Theta_gen(geometric_model=tnf, output_size=(H, W)) for tnf in self.tnf_list} |
| 14 | |
| 15 | def __call__(self, im, tnf_type, theta=None): |
| 16 | ''' |
nothing calls this directly
no test coverage detected