Skip to content

Commit

Permalink
tfrecord2 example save ims
Browse files Browse the repository at this point in the history
  • Loading branch information
zsdonghao committed Jun 26, 2017
1 parent 1f9caaa commit fa7eeb6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions example/tutorial_tfrecord2.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#! /usr/bin/python
# -*- coding: utf8 -*-


# import matplotlib
# matplotlib.use('GTK')
import tensorflow as tf
import tensorlayer as tl
from tensorlayer.layers import set_keep
import numpy as np
import time
from PIL import Image
import os
import io
import os, io, time


"""
You will learn:
Expand Down Expand Up @@ -102,6 +102,7 @@ def read_and_decode(filename):
# exit()
print(val.shape, l)
tl.visualize.images2d(val, second=1, saveable=False, name='batch'+str(i), dtype=np.uint8, fig_idx=2020121)
tl.vis.save_images(val, [2, 2], '_batch_%d.png' % i)

coord.request_stop()
coord.join(threads)
Expand Down

0 comments on commit fa7eeb6

Please sign in to comment.