Skip to content

Commit 251aa44

Browse files
authored
Merge pull request #208 from johnhany/Fix-filename-time
Fix time format in filenames
2 parents 0e1059e + 653a719 commit 251aa44

9 files changed

+2
-2
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def visualize(sess, dcgan, config, option):
174174
if option == 0:
175175
z_sample = np.random.uniform(-0.5, 0.5, size=(config.batch_size, dcgan.z_dim))
176176
samples = sess.run(dcgan.sampler, feed_dict={dcgan.z: z_sample})
177-
save_images(samples, [image_frame_dim, image_frame_dim], './samples/test_%s.png' % strftime("%Y%m%d%H%M%S", gmtime()))
177+
save_images(samples, [image_frame_dim, image_frame_dim], './samples/test_%s.png' % strftime("%Y-%m-%d-%H-%M-%S", gmtime()))
178178
elif option == 1:
179179
values = np.arange(0, 1, 1./config.batch_size)
180180
for idx in xrange(dcgan.z_dim):
@@ -215,7 +215,7 @@ def visualize(sess, dcgan, config, option):
215215
try:
216216
make_gif(samples, './samples/test_gif_%s.gif' % (idx))
217217
except:
218-
save_images(samples, [image_frame_dim, image_frame_dim], './samples/test_%s.png' % strftime("%Y%m%d%H%M%S", gmtime()))
218+
save_images(samples, [image_frame_dim, image_frame_dim], './samples/test_%s.png' % strftime("%Y-%m-%d-%H-%M-%S", gmtime()))
219219
elif option == 3:
220220
values = np.arange(0, 1, 1./config.batch_size)
221221
for idx in xrange(dcgan.z_dim):

0 commit comments

Comments
 (0)