a639c56f640a9fc5bc487b5d4d9544cc876fa62a,imgaug/augmenters/geometric.py,ElasticTransformation,_draw_samples,#ElasticTransformation#Any#Any#,2431

Before Change


                            + "got %s." % (type(mode),))

    def _draw_samples(self, nb_images, random_state):
        seeds = ia.copy_random_state(random_state).randint(0, 10**6, (nb_images+1,))
        alphas = self.alpha.draw_samples((nb_images,), random_state=ia.new_random_state(seeds[-1]+10000))
        sigmas = self.sigma.draw_samples((nb_images,), random_state=ia.new_random_state(seeds[-1]+10100))
        orders = self.order.draw_samples((nb_images,), random_state=ia.new_random_state(seeds[-1]+10200))
        cvals = self.cval.draw_samples((nb_images,), random_state=ia.new_random_state(seeds[-1]+10300))
        modes = self.mode.draw_samples((nb_images,), random_state=ia.new_random_state(seeds[-1]+10400))
        return seeds[0:-1], alphas, sigmas, orders, cvals, modes

    def _augment_images(self, images, random_state, parents, hooks):

After Change



    def _draw_samples(self, nb_images, random_state):
        // seeds = ia.copy_random_state(random_state).randint(0, 10**6, (nb_images+1,))
        rss = ia.derive_random_states(random_state, nb_images+5)
        alphas = self.alpha.draw_samples((nb_images,), random_state=rss[-5])
        sigmas = self.sigma.draw_samples((nb_images,), random_state=rss[-4])
        orders = self.order.draw_samples((nb_images,), random_state=rss[-3])
        cvals = self.cval.draw_samples((nb_images,), random_state=rss[-2])
        modes = self.mode.draw_samples((nb_images,), random_state=rss[-1])
        return rss[0:-5], alphas, sigmas, orders, cvals, modes

    def _augment_images(self, images, random_state, parents, hooks):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 19

Instances


Project Name: aleju/imgaug
Commit Name: a639c56f640a9fc5bc487b5d4d9544cc876fa62a
Time: 2019-01-28
Author: kontakt@ajung.name
File Name: imgaug/augmenters/geometric.py
Class Name: ElasticTransformation
Method Name: _draw_samples


Project Name: aleju/imgaug
Commit Name: a639c56f640a9fc5bc487b5d4d9544cc876fa62a
Time: 2019-01-28
Author: kontakt@ajung.name
File Name: imgaug/augmenters/geometric.py
Class Name: ElasticTransformation
Method Name: _draw_samples


Project Name: aleju/imgaug
Commit Name: 57b650ea3ad929e20a6f56bc01c08a0127943feb
Time: 2018-12-23
Author: alexander.jung@zenuity.com
File Name: imgaug/augmenters/geometric.py
Class Name: PiecewiseAffine
Method Name: _augment_keypoints


Project Name: aleju/imgaug
Commit Name: 57b650ea3ad929e20a6f56bc01c08a0127943feb
Time: 2018-12-23
Author: alexander.jung@zenuity.com
File Name: imgaug/augmenters/geometric.py
Class Name: PiecewiseAffine
Method Name: _augment_heatmaps