Skip to content

Commit

Permalink
[TESTING] Removing spaces and padding in results images
Browse files Browse the repository at this point in the history
  • Loading branch information
Hussem Ben Belgacem committed Jan 19, 2021
1 parent 46bd828 commit eba8738
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion colorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def main(config):
ax2.imshow(post_processed)
ax2.axis('off')

fig.savefig(save_path)
fig.savefig(save_path, bbox_inches='tight', pad_inches=0)


if __name__ == "__main__":
Expand Down
6 changes: 5 additions & 1 deletion src/tester/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ def _save_result(self, original_image, predicted_image):
ax2.imshow(predicted_image)
ax2.axis('off')

fig.savefig(os.path.join(test_save_path, str(self.cpt) + '.png'))
fig.savefig(
os.path.join(test_save_path, str(self.cpt) + '.png'),
bbox_inches='tight',
pad_inches=0
)

self.cpt += 1

Expand Down

0 comments on commit eba8738

Please sign in to comment.