b7988369f77e12525604e2613b279c13f041f484,scripts/pose/simple_pose/validate.py,,,#,138
Before Change
res = val_metric.get()
return
if __name__ == "__main__":
validate(val_data, val_dataset, net, context)
After Change
if opt.dsnt:
heatmap_size = [int(i/4) for i in input_size]
net_dsnt = DSNT(size=heatmap_size[::-1])
net_dsnt.initialize(ctx=context)
net_dsnt.hybridize()
def validate(val_data, val_dataset, net, ctx):
if isinstance(ctx, mx.Context):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: dmlc/gluon-cv
Commit Name: b7988369f77e12525604e2613b279c13f041f484
Time: 2019-12-04
Author: wuxun.zhang@intel.com
File Name: scripts/pose/simple_pose/validate.py
Class Name:
Method Name:
Project Name: dmlc/gluon-cv
Commit Name: 2318052dc79966bf36675606b7d992a347418292
Time: 2019-01-07
Author: cheungchih@gmail.com
File Name: scripts/detection/ssd/train_ssd.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-py
Commit Name: aaa220b753c9749ac1a0d86a32e4c1fdcb4faa7a
Time: 2019-06-13
Author: francois.hernandez.fh@gmail.com
File Name: onmt/utils/optimizers.py
Class Name:
Method Name: build_torch_optimizer