MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / __init__

Method __init__

core/utils/augmentor.py:7–13  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

5
6class 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 '''

Callers

nothing calls this directly

Calls 2

SynthPairTnfClass · 0.90
Theta_genClass · 0.90

Tested by

no test coverage detected