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])