Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trackers数量超过10个画图时会报错 #23

Open
PengJingchao opened this issue Aug 17, 2020 · 2 comments
Open

trackers数量超过10个画图时会报错 #23

PengJingchao opened this issue Aug 17, 2020 · 2 comments

Comments

@PengJingchao
Copy link

作者你好,感谢你的toolkit,极大地方便了我的工作。
在使用过程中发现个小bug:由于draw_utils中COLOR ,LINE_STYLE的个数只有10,所以tracker数量超过10个时,draw_success_precision.py中以下内容:
plt.plot(thresholds, np.mean(value, axis=0), color=COLOR[idx], linestyle=LINE_STYLE[idx], label=label, linewidth=2)
会报索引超出界限,建议修改为
plt.plot(thresholds, np.mean(value, axis=0), color=COLOR[idx % 10], linestyle=LINE_STYLE[divmod(idx, 10)[0]], label=label, linewidth=2)

@Dennisky
Copy link

请问下怎么画图啊?我只能输出结果画不出图片来?

@PengJingchao
Copy link
Author

可能你没安装latex,你可以尝试以下命令:
sudo apt-get install texlive-full
然后再重新运行程序

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants