Skip to content

Commit

Permalink
Merge pull request #34 from philipperemy/hot_fix_2
Browse files Browse the repository at this point in the history
Fix indentation issue
  • Loading branch information
Philippe Rémy authored Apr 16, 2019
2 parents 6a67784 + 9be0258 commit e44e920
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion keract/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from keract.keract import *

__version__ = '2.5.2'
__version__ = '2.5.3'
7 changes: 3 additions & 4 deletions keract/keract.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def display_activations(activations, cmap=None, save=False):
for i in range(nrows * ncols):
if i < acts.shape[-1]:
img = acts[0, :, :, i]
hmap = axes.flat[i].imshow(img,cmap=cmap)
hmap = axes.flat[i].imshow(img, cmap=cmap)
axes.flat[i].axis('off')
fig.subplots_adjust(right=0.8)
cbar = fig.add_axes([0.85, 0.15, 0.03, 0.7])
Expand All @@ -117,7 +117,7 @@ def display_activations(activations, cmap=None, save=False):
plt.savefig(layer_name.split('/')[0] + '.png', bbox_inches='tight')
else:
plt.show()
#pyplot figures require manual closing
# pyplot figures require manual closing
plt.close(fig)


Expand Down Expand Up @@ -201,5 +201,4 @@ def display_gradients_of_trainable_weights(gradients, save=False):
plt.savefig(layer_name.split('/')[0] + '.png', bbox_inches='tight')
else:
plt.show()
plt.close(fig)

plt.close(fig)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='keract',
version='2.5.2',
version='2.5.3',
description='Keras Activations and Gradients',
author='Philippe Remy',
license='MIT',
Expand Down

0 comments on commit e44e920

Please sign in to comment.