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

未定义变量classes #1

Open
JimmyMa99 opened this issue Feb 10, 2023 · 0 comments
Open

未定义变量classes #1

JimmyMa99 opened this issue Feb 10, 2023 · 0 comments

Comments

@JimmyMa99
Copy link

子豪兄你好,我在运行你的代码的时候在这个jupyter生成混淆矩阵的时候报错,未定义变量classes
https://github.com/TommyZihao/MMSegmentation_Tutorials/blob/1023f9704360d36930a9e5fd4befb8fb0d491339/20230206/%E3%80%90D1%E3%80%91Kaggle%E5%B0%8F%E9%BC%A0%E8%82%BE%E5%B0%8F%E7%90%83%E5%88%87%E7%89%87%E8%AF%AD%E4%B9%89%E5%88%86%E5%89%B2/%E3%80%90E%E3%80%91%E7%94%A8%E8%AE%AD%E7%BB%83%E5%BE%97%E5%88%B0%E7%9A%84%E6%A8%A1%E5%9E%8B%E9%A2%84%E6%B5%8B.ipynb
你需要更改为classes = ('background', 'glomeruili') cnf_matrix_plotter(confusion_matrix_model, classes, cmap='Blues')
正如你在训练中定义的那样

image

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

1 participant