6d68dca2aec44c5b1a73e6c9db5c5fbf6f731fd0,keras_retinanet/bin/train.py,,main,#Any#,454
Before Change
elif args.snapshot:
//search the anchors parameters configure beside models
anchors_path = os.path.join(args.snapshot,"anchors.yaml")
anchors_path = anchors_path if os.path.exists(anchors_path) else None
anchors_dict = get_anchors_params(anchors_path)
else:
//default anchors params
anchors_dict = get_anchors_params(None)
After Change
print("Loading model, this may take a second...")
model = models.load_model(args.snapshot, backbone_name=args.backbone)
training_model = model
if args.config and "anchor_parameters" in args.config:
anchor_params = parse_anchor_parameters(args.config)
prediction_model = retinanet_bbox(model=model, anchor_params=anchor_params)
else:
prediction_model = retinanet_bbox(model=model)
else:
weights = args.weights
// default to imagenet if nothing else is specified
if weights is None and args.imagenet_weights:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: fizyr/keras-retinanet
Commit Name: 6d68dca2aec44c5b1a73e6c9db5c5fbf6f731fd0
Time: 2018-09-11
Author: e.liscio@fizyr.com
File Name: keras_retinanet/bin/train.py
Class Name:
Method Name: main
Project Name: fizyr/keras-retinanet
Commit Name: 6d68dca2aec44c5b1a73e6c9db5c5fbf6f731fd0
Time: 2018-09-11
Author: e.liscio@fizyr.com
File Name: keras_retinanet/bin/evaluate.py
Class Name:
Method Name: main
Project Name: googledatalab/pydatalab
Commit Name: 0ac8733a4aa7f6fd9845c2746d9c8346ab794510
Time: 2017-10-27
Author: 4618540+rajivpb@users.noreply.github.com
File Name: google/datalab/contrib/bigquery/operators/_bq_load_operator.py
Class Name: LoadOperator
Method Name: execute