3309415b660635c6efbc66e2c1e274127be4dff9,chainercv/links/model/vgg/vgg16.py,VGG16,__init__,#VGG16#Any#Any#Any#Any#Any#Any#,93

Before Change


            ])
        layers = _choose_necessary_layers(layers, layer_names)
        // Instantiate uninitialized links.
        link_names = ["conv1_1", "conv1_2", "conv2_1", "conv2_2",
                      "conv3_1", "conv3_2", "conv3_3", "conv4_1",
                      "conv4_2", "conv4_3", "conv5_1", "conv5_2",
                      "conv5_3", "fc6", "fc7", "fc8"]
        for name in list(layers.keys()):
            if name in link_names:
                layers[name] = layers[name]()

        super(VGG16, self).__init__(layers, layer_names)

After Change


        // avoid doing so whenever possible.
        fc_layer_names = ["fc6", "fc6_relu", "fc6_dropout",
                          "fc7", "fc7_relu", "fc7_dropout", "fc8", "prob"]
        if (any([name in fc_layer_names for name in layer_names])
                or layer_names in fc_layer_names):
            fc_kwargs = {"initialW": constant.Zero(),
                         "initial_bias": constant.Zero()}
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: chainer/chainercv
Commit Name: 3309415b660635c6efbc66e2c1e274127be4dff9
Time: 2017-06-27
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg16.py
Class Name: VGG16
Method Name: __init__


Project Name: aleju/imgaug
Commit Name: bbc6f5c6bf2b02e415109e2ac3c0a9c4ba440e3c
Time: 2019-09-21
Author: kontakt@ajung.name
File Name: imgaug/augmenters/convolutional.py
Class Name: Convolve
Method Name: _augment_images


Project Name: aleju/imgaug
Commit Name: 7da4dcbfd295534d417ad3ef5a9c701201073fd1
Time: 2019-09-21
Author: kontakt@ajung.name
File Name: imgaug/augmenters/blur.py
Class Name: AverageBlur
Method Name: _augment_images