Skip to content

Commit

Permalink
video_grid -> video_grid2d
Browse files Browse the repository at this point in the history
  • Loading branch information
EderSantana committed Oct 15, 2015
1 parent b823e29 commit cf99ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agnez/keras_callbacks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''This provides visualization tools for Keras.'''
from . import grid2d, DeepPref, video_grid
from . import grid2d, DeepPref, video_grid2d

from theano import function
from keras.callbacks import Callback
Expand Down Expand Up @@ -153,7 +153,7 @@ def __init__(self, filepath, X, func, how_often=10, display=None):
def on_epoch_end(self, epoch, logs={}):
if epoch % self.how_often == 0:
rec = self.func(self.X)
_ = video_grid(rec.transpose(1, 0, 2), self.filepath)
_ = video_grid2d(rec.transpose(1, 0, 2), self.filepath)
if self.display is not None:
self.display.clear_output(wait=True)
print('Saved gif.')

0 comments on commit cf99ca6

Please sign in to comment.