c7f7d1979a35b443dba7e776203ed7084efecf77,models/networks.py,,define_G,#,31

Before Change


    elif which_model_netG == "unet_256":
        netG = UnetGenerator(input_nc, output_nc, 8, ngf, norm_layer=norm_layer, use_dropout=use_dropout, gpu_ids=gpu_ids)
    else:
        print("Generator model name [%s] is not recognized" % which_model_netG)
    if len(gpu_ids) > 0:
        netG.cuda(device_id=gpu_ids[0])
    netG.apply(weights_init)
    return netG

After Change


    elif which_model_netG == "unet_256":
        netG = UnetGenerator(input_nc, output_nc, 8, ngf, norm_layer=norm_layer, use_dropout=use_dropout, gpu_ids=gpu_ids)
    else:
        raise NotImplementedError("Generator model name [%s] is not recognized" % which_model_netG)
    if len(gpu_ids) > 0:
        netG.cuda(device_id=gpu_ids[0])
    netG.apply(weights_init)
    return netG
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: richzhang/colorization-pytorch
Commit Name: c7f7d1979a35b443dba7e776203ed7084efecf77
Time: 2017-07-05
Author: junyanz@berkeley.edu
File Name: models/networks.py
Class Name:
Method Name: define_G


Project Name: richzhang/colorization-pytorch
Commit Name: c7f7d1979a35b443dba7e776203ed7084efecf77
Time: 2017-07-05
Author: junyanz@berkeley.edu
File Name: models/networks.py
Class Name:
Method Name: get_norm_layer


Project Name: richzhang/colorization-pytorch
Commit Name: c7f7d1979a35b443dba7e776203ed7084efecf77
Time: 2017-07-05
Author: junyanz@berkeley.edu
File Name: models/networks.py
Class Name:
Method Name: define_D


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: c18a6320d33e04639659c1eda70ae85a8e8622fb
Time: 2018-08-14
Author: ziquanlanyue@163.com
File Name: models/networks.py
Class Name:
Method Name: define_G


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: c18a6320d33e04639659c1eda70ae85a8e8622fb
Time: 2018-08-14
Author: ziquanlanyue@163.com
File Name: models/networks.py
Class Name:
Method Name: define_D