Skip to content

Commit

Permalink
fix visualization (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
divyashreepathihalli committed May 31, 2024
1 parent 96c3de8 commit 5cfe7c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions keras_cv/src/visualization/plot_image_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,6 @@ def plot_image_gallery(
current_axis.margins(x=0, y=0)
current_axis.axis("off")

if path is None and show is None:
return fig

if path is not None:
plt.savefig(
fname=path,
Expand All @@ -190,3 +187,5 @@ def plot_image_gallery(
elif show:
plt.show()
plt.close()
else:
return fig

0 comments on commit 5cfe7c3

Please sign in to comment.