bf93c0a1393731b2b3d8afc7055ece2abea55f4e,detect.py,,,#,24

Before Change


    opt = parser.parse_args()
    print(opt)

    cuda = torch.cuda.is_available()

    os.makedirs("output", exist_ok=True)

    // Set up model
    model = Darknet(opt.config_path, img_size=opt.img_size)

    if opt.weights_path.endswith(".weights"):
        // Load darknet weights
        model.load_darknet_weights(opt.weights_path)
    else:
        // Load checkpoint weights
        model.load_state_dict(torch.load(opt.weights_path))

    if cuda:
        model.cuda()

    model.eval()  // Set in evaluation mode

    dataloader = DataLoader(
        ImageFolder(opt.image_folder, img_size=opt.img_size),

After Change


    opt = parser.parse_args()
    print(opt)

    device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

    os.makedirs("output", exist_ok=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: bf93c0a1393731b2b3d8afc7055ece2abea55f4e
Time: 2019-04-30
Author: eriklindernoren@live.se
File Name: detect.py
Class Name:
Method Name:


Project Name: google/uis-rnn
Commit Name: 1da20c693ac9f4cf345ddd795d99aa028e011ee8
Time: 2018-10-25
Author: aonan@aonan.nyc.corp.google.com
File Name: model/uisrnn.py
Class Name: UISRNN
Method Name: __init__


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: ac7bb33dd978e2bf6ecb0cf055dd6bf6c9c1ea05
Time: 2019-04-19
Author: eriklindernoren@live.se
File Name: train.py
Class Name:
Method Name: