Unverified Commit 00fa8b12 authored by cclauss's avatar cclauss Committed by GitHub
Browse files

Merge branch 'master' into patch-13

parents 6d257a4f 1f34fcaf
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -90,7 +90,7 @@ def walk_through(b): ...@@ -90,7 +90,7 @@ def walk_through(b):
root = tk.Tk() root = tk.Tk()
image = b.render_nodes(b.task.nodes[[current_node],:])[0] image = b.render_nodes(b.task.nodes[[current_node],:])[0]
print image.shape print(image.shape)
image = image.astype(np.uint8) image = image.astype(np.uint8)
im = Image.fromarray(image) im = Image.fromarray(image)
im = ImageTk.PhotoImage(im) im = ImageTk.PhotoImage(im)
......
...@@ -58,7 +58,7 @@ def main(_): ...@@ -58,7 +58,7 @@ def main(_):
#iteration = FLAGS.iteration #iteration = FLAGS.iteration
if not tf.gfile.Exists(FLAGS.input_codes): if not tf.gfile.Exists(FLAGS.input_codes):
print '\nInput codes not found.\n' print('\nInput codes not found.\n')
return return
with tf.gfile.FastGFile(FLAGS.input_codes, 'rb') as code_file: with tf.gfile.FastGFile(FLAGS.input_codes, 'rb') as code_file:
......
...@@ -171,7 +171,7 @@ def train(): ...@@ -171,7 +171,7 @@ def train():
'code_length': model.average_code_length 'code_length': model.average_code_length
} }
np_tensors = sess.run(tf_tensors, feed_dict=feed_dict) np_tensors = sess.run(tf_tensors, feed_dict=feed_dict)
print np_tensors['code_length'] print(np_tensors['code_length'])
sv.Stop() sv.Stop()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment