1 Star 0 Fork 0

邢卫国/NVCaffe1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
plot_top1.py 827 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sergei Nikolaev 提交于 2017-04-25 20:20 . Squashed commit of the following:
#!/usr/bin/env python
import sys
import argparse
try:
import seaborn as sns
sns.set(style="dark")
except ImportError:
pass
import matplotlib.pyplot as plt
from common_plot import parse_files, plot_accuracy
TOP_K = 1
parser = argparse.ArgumentParser(description='Plot top {}% from log files.'.format(TOP_K))
parser.add_argument('-v', dest='value_at_hover', action='store_true',
help="Display plot values at cursor hover")
parser.add_argument('-s', dest='separate', action='store_true',
help="plot each log separately, don't concatenate them")
parser.add_argument('log', nargs = '*', help = "list of log files.")
args = parser.parse_args()
data = parse_files(files=args.log, top_k=TOP_K, separate=args.separate)
plt = plot_accuracy(top_k=TOP_K, data=data, value_at_hover=args.value_at_hover)
plt.show()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xingwg/NVCaffe1.git
git@gitee.com:xingwg/NVCaffe1.git
xingwg
NVCaffe1
NVCaffe1
caffe-0.17

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385