a1ffcada5b90540eb10187f632f1947eae0849a2,pyimgaug/augmenters2.py,Affine,_draw_samples,#Affine#Any#Any#,940
Before Change
assert translate_samples[0].dtype in [np.int32, np.int64, np.float32, np.float64]
assert translate_samples[1].dtype in [np.int32, np.int64, np.float32, np.float64]
translate_samples_px = [None, None]
if translate_samples[0].dtype in [np.float32, np.float64]:
translate_samples_px[0] = translate_samples[0] * width
else:
translate_samples_px[0] = translate_samples[0]
After Change
rotate_samples = self.rotate.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 70))
shear_samples = self.shear.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 80))
cval_samples = self.cval.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 90))
mode_samples = self.mode.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 100))
order_samples = self.order.draw_samples((nb_samples,), random_state=ia.new_random_state(seed + 110))
return scale_samples, translate_samples, rotate_samples, shear_samples, cval_samples, mode_samples, order_samples
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: aleju/imgaug
Commit Name: a1ffcada5b90540eb10187f632f1947eae0849a2
Time: 2016-11-20
Author: kontakt@ajung.name
File Name: pyimgaug/augmenters2.py
Class Name: Affine
Method Name: _draw_samples
Project Name: aleju/imgaug
Commit Name: 3326e5fcae11a6723c0f6a8db0bf56c3a8d04eef
Time: 2019-08-11
Author: kontakt@ajung.name
File Name: test/augmenters/test_edges.py
Class Name: TestCanny
Method Name: test__draw_samples__single_value_hysteresis
Project Name: aleju/imgaug
Commit Name: 3326e5fcae11a6723c0f6a8db0bf56c3a8d04eef
Time: 2019-08-11
Author: kontakt@ajung.name
File Name: test/augmenters/test_edges.py
Class Name: TestCanny
Method Name: test__draw_samples__tuple_as_hysteresis