cfd0fea779274f79a49bba750b113579f16e962c,train_vidreid_xent_htri.py,,main,#,108

Before Change


            model.load_state_dict(model_dict)
            print("Loaded pretrained weights from "{}"".format(args.load_weights))

    if args.resume:
        if check_isfile(args.resume):
            checkpoint = torch.load(args.resume)
            model.load_state_dict(checkpoint["state_dict"])
            args.start_epoch = checkpoint["epoch"]
            rank1 = checkpoint["rank1"]
            print("Loaded checkpoint from "{}"".format(args.resume))
            print("- start_epoch: {}\n- rank1: {}".format(args.start_epoch, rank1))

    if use_gpu:
        model = nn.DataParallel(model).cuda()

    if args.evaluate:

After Change


        model.load_state_dict(model_dict)
        print("Loaded pretrained weights from "{}"".format(args.load_weights))

    if args.resume and check_isfile(args.resume):
        checkpoint = torch.load(args.resume)
        model.load_state_dict(checkpoint["state_dict"])
        args.start_epoch = checkpoint["epoch"] + 1
        best_rank1 = checkpoint["rank1"]
        print("Loaded checkpoint from "{}"".format(args.resume))
        print("- start_epoch: {}\n- rank1: {}".format(args.start_epoch, best_rank1))

    if use_gpu:
        model = nn.DataParallel(model).cuda()

    if args.evaluate:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: KaiyangZhou/deep-person-reid
Commit Name: cfd0fea779274f79a49bba750b113579f16e962c
Time: 2018-09-29
Author: k.zhou@qmul.ac.uk
File Name: train_vidreid_xent_htri.py
Class Name:
Method Name: main


Project Name: KaiyangZhou/deep-person-reid
Commit Name: cfd0fea779274f79a49bba750b113579f16e962c
Time: 2018-09-29
Author: k.zhou@qmul.ac.uk
File Name: train_imgreid_xent.py
Class Name:
Method Name: main


Project Name: KaiyangZhou/deep-person-reid
Commit Name: cfd0fea779274f79a49bba750b113579f16e962c
Time: 2018-09-29
Author: k.zhou@qmul.ac.uk
File Name: train_vidreid_xent.py
Class Name:
Method Name: main


Project Name: KaiyangZhou/deep-person-reid
Commit Name: cfd0fea779274f79a49bba750b113579f16e962c
Time: 2018-09-29
Author: k.zhou@qmul.ac.uk
File Name: train_imgreid_xent_htri.py
Class Name:
Method Name: main