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: 5
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: rail-berkeley/softlearning
Commit Name: 4dd96193aaa69485ef183778f053fcfcbef457a2
Time: 2018-05-22
Author: azhou42@berkeley.edu
File Name: sac/algos/base.py
Class Name: RLAlgorithm
Method Name: _train