From ab19f85b7220c2f71c4936800ea3dc28661a1571 Mon Sep 17 00:00:00 2001 From: Giang Nguyen <30857111+luulinh90s@users.noreply.github.com> Date: Wed, 22 Jul 2020 17:59:33 +0900 Subject: [PATCH] Update __init__.py I wasted few hours fixing my matplotlib backend because I think the plot does show because of this widely-known issue. https://stackoverflow.com/questions/7534453/matplotlib-does-not-show-my-drawings-although-i-call-pyplot-show Only when reading the code in details can I see that `show_plot= False` by default. Then I propose to change this variable to True to not make others confused. --- torchray/benchmark/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchray/benchmark/__init__.py b/torchray/benchmark/__init__.py index f5cc57f..bb9723e 100644 --- a/torchray/benchmark/__init__.py +++ b/torchray/benchmark/__init__.py @@ -77,7 +77,7 @@ def plot_example(input, saliency, method, category_id, - show_plot=False, + show_plot=True, save_path=None): """Plot an example.