mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
[Fix] make arguments effective in tools/confusion_matrix.py (#1401)
* add an argument for customizing `title' of the output figure * fix `color_theme' arguments not passing to plot function Signed-off-by: code14 <mob5566@gmail.com>
This commit is contained in:
parent
1b24ad656f
commit
18859e4de0
@ -25,6 +25,10 @@ def parse_args():
|
||||
'--color-theme',
|
||||
default='winter',
|
||||
help='theme of the matrix color map')
|
||||
parser.add_argument(
|
||||
'--title',
|
||||
default='Normalized Confusion Matrix',
|
||||
help='title of the matrix color map')
|
||||
parser.add_argument(
|
||||
'--cfg-options',
|
||||
nargs='+',
|
||||
@ -171,7 +175,9 @@ def main():
|
||||
confusion_matrix,
|
||||
dataset.CLASSES,
|
||||
save_dir=args.save_dir,
|
||||
show=args.show)
|
||||
show=args.show,
|
||||
title=args.title,
|
||||
color_theme=args.color_theme)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user