a1ffcada5b90540eb10187f632f1947eae0849a2,pyimgaug/augmenters2.py,Multiply,__init__,#Multiply#Any#Any#Any#Any#Any#,739

Before Change


class Multiply(Augmenter):
    def __init__(self, mul=1.0, clip=True, name=None, deterministic=False, random_state=None):
        Augmenter.__init__(self, name=name, deterministic=deterministic, random_state=random_state)
        if isinstance(mul, (float, int)):
            assert mul >= 0.0, "Expected multiplier to have range [0, inf), got value %.4f." % (mul,)
            self.mul = Deterministic(mul)
        elif isinstance(mul, (tuple, list)):

After Change



        if ia.is_single_number(scale):
            self.scale = Deterministic(scale)
        elif ia.is_iterable(scale):
            assert len(scale) == 2, "Expected tuple/list with 2 entries for argument "scale", got %d entries." % (str(len(scale)),)
            self.scale = Uniform(scale[0], scale[1])
        elif isinstance(scale, StochasticParameter):
            self.scale = scale
        else:
            raise Exception("Expected float, int, tuple/list with 2 entries or StochasticParameter for argument "scale". Got %s." % (type(scale),))

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

Frequency: 3

Non-data size: 4

Instances


Project Name: aleju/imgaug
Commit Name: a1ffcada5b90540eb10187f632f1947eae0849a2
Time: 2016-11-20
Author: kontakt@ajung.name
File Name: pyimgaug/augmenters2.py
Class Name: Multiply
Method Name: __init__


Project Name: aleju/imgaug
Commit Name: a1ffcada5b90540eb10187f632f1947eae0849a2
Time: 2016-11-20
Author: kontakt@ajung.name
File Name: pyimgaug/augmenters2.py
Class Name: Dropout
Method Name: __init__


Project Name: aleju/imgaug
Commit Name: 4d594e01f1bebb81b5eab3ae07f388edaf83cc8e
Time: 2019-07-24
Author: kontakt@ajung.name
File Name: imgaug/augmentables/segmaps.py
Class Name: SegmentationMapsOnImage
Method Name: draw