Skip to content

Commit

Permalink
fix too many open images warning (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
djdameln committed May 30, 2022
1 parent b044e63 commit 10db405
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions anomalib/post_processing/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def generate(self):

def show(self):
"""Show image on a matplotlib figure."""
self.generate()
self.figure.show()

def save(self, filename: Path):
Expand All @@ -77,7 +76,6 @@ def save(self, filename: Path):
Args:
filename (Path): Filename to save image
"""
self.generate()
filename.parent.mkdir(parents=True, exist_ok=True)
self.figure.savefig(filename, dpi=100)

Expand Down

0 comments on commit 10db405

Please sign in to comment.