From 0197b738067ed76cba63b0eff41ca65ae5e0341d Mon Sep 17 00:00:00 2001 From: Matt Cooper Date: Fri, 9 Dec 2016 18:47:49 -0500 Subject: Updated for tensorflow 0.12 --- Code/g_model.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Code/g_model.py') diff --git a/Code/g_model.py b/Code/g_model.py index 4e0df31..5dc8265 100644 --- a/Code/g_model.py +++ b/Code/g_model.py @@ -106,15 +106,14 @@ class GeneratorModel: scale_height = int(height * scale_factor) scale_width = int(width * scale_factor) - inputs = tf.image.resize_images(inputs, scale_height, scale_width) - scale_gts = tf.image.resize_images(gts, scale_height, scale_width) + inputs = tf.image.resize_images(inputs, [scale_height, scale_width]) + scale_gts = tf.image.resize_images(gts, [scale_height, scale_width]) # for all scales but the first, add the frame generated by the last # scale to the input if scale_num > 0: - last_gen_frames = tf.image.resize_images(last_gen_frames, - scale_height, - scale_width) + last_gen_frames = tf.image.resize_images( + last_gen_frames,[scale_height, scale_width]) inputs = tf.concat(3, [inputs, last_gen_frames]) # generated frame predictions -- cgit v1.2.3-70-g09d2