5c635f197f7682070bde8da08943b2f1902b796c,gluonvision/model_zoo/ssd/ssd.py,SSD,__init__,#SSD#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,79

Before Change


            num_layers = len(features) + len(num_filters) + int(global_pool)
        assert len(scale) == 2, "Must specify scale as (min_scale, max_scale)."
        min_scale, max_scale = scale
        sizes = [min_scale + (max_scale - min_scale) * i / (num_layers - 1)
                 for i in range(num_layers)] + [1.0]
        sizes = [x * base_size for x in sizes]
        sizes = list(zip(sizes[:-1], sizes[1:]))
        assert isinstance(ratios, list), "Must provide ratios as list or list of list"
        if not isinstance(ratios[0], (tuple, list)):
            ratios = ratios * num_layers  // propagate to all layers if use same ratio

After Change


        //          for i in range(num_layers)] + [1.0]
        // sizes = [x * base_size for x in sizes]
        // sizes = [30, 60, 111, 162, 213, 264, 315]
        assert len(sizes) == num_layers + 1
        sizes = list(zip(sizes[:-1], sizes[1:]))
        assert isinstance(ratios, list), "Must provide ratios as list or list of list"
        if not isinstance(ratios[0], (tuple, list)):
            ratios = ratios * num_layers  // propagate to all layers if use same ratio
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: dmlc/gluon-cv
Commit Name: 5c635f197f7682070bde8da08943b2f1902b796c
Time: 2018-04-09
Author: cheungchih@gmail.com
File Name: gluonvision/model_zoo/ssd/ssd.py
Class Name: SSD
Method Name: __init__


Project Name: aleju/imgaug
Commit Name: 2a1bd4c93a998d16516d82893401b346d66a95e9
Time: 2019-07-19
Author: kontakt@ajung.name
File Name: imgaug/dtypes.py
Class Name:
Method Name: get_minimal_dtype


Project Name: catalyst-team/catalyst
Commit Name: 1ef3ad90a3423ed15ca41e0ea4e81012ebe84a9f
Time: 2020-08-11
Author: scitator@gmail.com
File Name: catalyst/data/scripts/project_embeddings.py
Class Name:
Method Name: main


Project Name: OpenNMT/OpenNMT-py
Commit Name: 7fb5e9256e0e9ddab8ec7854fdf11fcdb5717a45
Time: 2018-09-05
Author: pltrdy@gmail.com
File Name: onmt/inputters/dataset_base.py
Class Name: DatasetBase
Method Name: extract_text_features