20b6e3e88cad2a2d80da778a2c991ecc4640f94d,evaluate.py,,,#,18

Before Change


parser.add_argument_group("Evaluation related arguments")
parser.add_argument("--load-path", default="checkpoints/model.pth",
                        help="Path to load pretrained checkpoint from.")
parser.add_argument("--split", default="val", choices=["val", "test"],
                        help="Split to evaluate on")
parser.add_argument("--use-gt", action="store_true",
                        help="Whether to use ground truth for retrieving ranks")

parser.add_argument_group("Arguments independent of experiment reproducibility")

After Change


// ----------------------------------------------------------------------------

// let the model know vocabulary size, to declare embedding layer
config["model"]["vocab_size"] = len(dataset.vocabulary)

components = torch.load(args.load_path)

encoder = Encoder(config["model"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: batra-mlp-lab/visdial-challenge-starter-pytorch
Commit Name: 20b6e3e88cad2a2d80da778a2c991ecc4640f94d
Time: 2018-12-25
Author: karandesai281196@gmail.com
File Name: evaluate.py
Class Name:
Method Name:


Project Name: sony/nnabla-examples
Commit Name: 48543004aa6f3b2fdff408be58fad410597bfbaa
Time: 2018-10-26
Author: Takuya.Narihira@jp.sony.com
File Name: object-detection/yolov2/yolov2_nnp.py
Class Name:
Method Name: get_args


Project Name: sony/nnabla-examples
Commit Name: 48543004aa6f3b2fdff408be58fad410597bfbaa
Time: 2018-10-26
Author: Takuya.Narihira@jp.sony.com
File Name: object-detection/yolov2/yolov2_detection.py
Class Name:
Method Name: get_args