a710695ec2319935068396453896d5341759c1c9,eval_ensemble.py,,,#,22

Before Change


                help="if running on MSCOCO images, which split to use: val|test|train")
parser.add_argument("--coco_json", type=str, default="", 
                help="if nonempty then use this file in DataLoaderRaw (see docs there). Used only in MSCOCO test evaluation, where we have a specific json file of only test set images.")
parser.add_argument("--seq_length", type=int, default=40, 
                help="maximum sequence length during sampling")
// misc
parser.add_argument("--id", type=str, default="", 
                help="an id identifying this run/job. used only if language_eval = 1 for appending to intermediate files")
parser.add_argument("--verbose_beam", type=int, default=1, 

After Change



// override and collect parameters
replace = ["input_fc_dir", "input_att_dir", "input_box_dir", "input_label_h5", "input_json", "batch_size", "id"]
for k in replace:
    setattr(opt, k, getattr(opt, k) or getattr(infos["opt"], k))

vars(opt).update({k: vars(infos["opt"])[k] for k in vars(infos["opt"]).keys() if k not in vars(opt)}) // copy over options from model


opt.use_box = max([getattr(infos["opt"], "use_box", 0) for infos in model_infos])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: a710695ec2319935068396453896d5341759c1c9
Time: 2019-04-18
Author: rluo@ttic.edu
File Name: eval_ensemble.py
Class Name:
Method Name:


Project Name: ruotianluo/self-critical.pytorch
Commit Name: a710695ec2319935068396453896d5341759c1c9
Time: 2019-04-18
Author: rluo@ttic.edu
File Name: eval_ensemble.py
Class Name:
Method Name:


Project Name: batra-mlp-lab/visdial-challenge-starter-pytorch
Commit Name: 61421e8d341312e02dff23b46acde4261808dab3
Time: 2018-07-06
Author: karandesai281196@gmail.com
File Name: train.py
Class Name:
Method Name: