bd6213492cec3cf7a28d1dc2e8631c3d7e7a55a9,waifu2x.py,,load_models,#,82

Before Change


def load_models(cfg):
    ch = 3 if cfg.color == "rgb" else 1
    if cfg.model_dir is None:
        model_dir = "models/%s" % cfg.arch.lower()
    else:
        model_dir = cfg.model_dir

    models = {}

After Change


def load_models(cfg):
    ch = 3 if cfg.color == "rgb" else 1
    if cfg.model_dir is None:
        model_dir = "models/{}".format(cfg.arch.lower())
    else:
        model_dir = cfg.model_dir
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: tsurumeso/waifu2x-chainer
Commit Name: bd6213492cec3cf7a28d1dc2e8631c3d7e7a55a9
Time: 2018-06-20
Author: tsurumeso@gmail.com
File Name: waifu2x.py
Class Name:
Method Name: load_models


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 7a16cf4a28e47ec35e68982fb032995faaefda04
Time: 2018-06-11
Author: okuchaiev@users.noreply.github.com
File Name: open_seq2seq/optimizers/automatic_loss_scaler.py
Class Name: AutomaticLossScaler
Method Name: __init__


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 266123b94394d2ab76eb83c4fb460a35fb9c7549
Time: 2018-02-22
Author: akshayubhat@gmail.com
File Name: server/dvalib/crnn/utils.py
Class Name: strLabelConverter
Method Name: encode