Method
__init__
(self,
output_size=(480, 640),
geometric_model='affine',
random_t=0.5,
random_s=0.5,
random_alpha=1 / 6,
random_t_tps=0.5,
four_point_hom=True)
Source from the content-addressed store, hash-verified
| 671 | """ |
| 672 | |
| 673 | def __init__(self, |
| 674 | output_size=(480, 640), |
| 675 | geometric_model='affine', |
| 676 | random_t=0.5, |
| 677 | random_s=0.5, |
| 678 | random_alpha=1 / 6, |
| 679 | random_t_tps=0.5, |
| 680 | four_point_hom=True): |
| 681 | |
| 682 | self.out_h, self.out_w = output_size |
| 683 | self.random_t = random_t |
| 684 | self.random_t_tps = random_t_tps |
| 685 | self.random_alpha = random_alpha |
| 686 | self.random_s = random_s |
| 687 | self.four_point_hom = four_point_hom |
| 688 | self.geometric_model = geometric_model |
| 689 | self.affineTnf = GeometricTnf(out_h=self.out_h, out_w=self.out_w, use_cuda=False) |
| 690 | |
| 691 | |
| 692 | def __call__(self): |
Tested by
no test coverage detected