9f0b230e1f59cb399e36210483bc075760b02eaf,scripts/detection/ssd/eval.py,,,#,70
Before Change
// network
net_name = "_".join(("ssd", str(args.data_shape), args.network))
net = get_model(net_name, classes=len(classes), pretrained=0) // load pretrained base network
net.load_params(args.pretrained.strip())
// training
After Change
// network
net_name = "_".join(("ssd", str(args.data_shape), args.network, args.dataset))
if args.pretrained.lower() in ["true", "1", "yes", "t"]:
net = gv.model_zoo.get_model(net_name, pretrained=True)
else:
net = gv.model_zoo.get_model(net_name, pretrained=False)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/gluon-cv
Commit Name: 9f0b230e1f59cb399e36210483bc075760b02eaf
Time: 2018-04-11
Author: cheungchih@gmail.com
File Name: scripts/detection/ssd/eval.py
Class Name:
Method Name:
Project Name: pytorch/fairseq
Commit Name: 8f058ea0fb41b5694e2c3130d7e917ae8489cf40
Time: 2017-10-11
Author: edunov@fb.com
File Name: train.py
Class Name:
Method Name: main