Skip to content

Commit

Permalink
color_theme error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
unique-chan committed Feb 5, 2025
1 parent c7adc52 commit cd491ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/analysis_tools/confusion_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ def plot_confusion_matrix(confusion_matrix,
if save_dir is not None:
plt.savefig(
os.path.join(save_dir, 'confusion_matrix.png'), format='png')
plt.savefig(
os.path.join(save_dir, 'confusion_matrix.svg'), format='svg')
if show:
plt.show()

Expand Down Expand Up @@ -261,8 +263,10 @@ def main():
confusion_matrix,
dataset.CLASSES + ('background', ),
save_dir=args.save_dir,
show=args.show)
show=args.show,
color_theme=args.color_theme)


if __name__ == '__main__':
main()

0 comments on commit cd491ea

Please sign in to comment.