8e55eff8f3cd1fd6a932d02098bdfdd6b959e306,classification_models/resnet/builder.py,,build_resnet,#,21

Before Change


    conv_params = get_conv_params()
    init_filters = 64

    if block_type == "basic":
        conv_block = basic_conv_block
        identity_block = basic_identity_block
    else:
        conv_block = usual_conv_block
        identity_block = usual_identity_block
    
    // resnet bottom
    x = BatchNormalization(name="bn_data", **no_scale_bn_params)(img_input)
    x = ZeroPadding2D(padding=(3, 3))(x)
    x = Conv2D(init_filters, (7, 7), strides=(2, 2), name="conv0", **conv_params)(x)
    x = BatchNormalization(name="bn0", **bn_params)(x)

After Change


        attention_block = spatial_se_block()
    elif attention == "cse":
        attention_block = channel_se_block(ratio=16)
    elif attention == "csse":
        attention_block = csse_block(ratio=2)
    elif attention is None:
        attention_block = None
    else:
        raise ValueError("Supported attention blocks are: sse, cse, csse. Got "{}".".format(attention))

    // get parameters for model layers
    no_scale_bn_params = get_bn_params(scale=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: qubvel/classification_models
Commit Name: 8e55eff8f3cd1fd6a932d02098bdfdd6b959e306
Time: 2018-12-26
Author: qubvel@gmail.com
File Name: classification_models/resnet/builder.py
Class Name:
Method Name: build_resnet


Project Name: librosa/librosa
Commit Name: 9b95e0f07b60b6a144893dcc506dfaf90db61c95
Time: 2020-05-18
Author: bmcfee@users.noreply.github.com
File Name: librosa/feature/utils.py
Class Name:
Method Name: stack_memory


Project Name: scikit-image/scikit-image
Commit Name: 9ce31f7b61bd03877727ebf0ea94fd1505da61e7
Time: 2019-08-25
Author: egor.v.panfilov@gmail.com
File Name: skimage/morphology/convex_hull.py
Class Name:
Method Name: convex_hull_object