Merge branch 'bits_and_tpu' of github.com:rwightman/pytorch-image-models into bits_and_tpu

pull/1239/head
Ross Wightman 3 years ago
commit b974d85026

@ -41,6 +41,10 @@ def checkpoint_metric(checkpoint_path):
metric = None
if 'metric' in checkpoint:
metric = checkpoint['metric']
elif 'metrics' in checkpoint and 'metric_name' in checkpoint:
metrics = checkpoint['metrics']
print(metrics)
metric = metrics[checkpoint['metric_name']]
return metric

Loading…
Cancel
Save