Skip to content

Commit d42e97e

Browse files
author
gezhen.gz
committed
start
1 parent cb75d23 commit d42e97e

File tree

2 files changed

+56
-11
lines changed

2 files changed

+56
-11
lines changed

.idea/workspace.xml

Lines changed: 54 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deeplab_resnet/image_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def read_images_from_disk(input_queue, input_size, random_scale): # optional pre
4949
h, w = input_size
5050
if random_scale:
5151
scale = tf.random_uniform([1], minval=0.75, maxval=1.25, dtype=tf.float32, seed=None)
52-
h_new = tf.to_int32(tf.mul(tf.to_float(tf.shape(img)[1]), scale))
53-
w_new = tf.to_int32(tf.mul(tf.to_float(tf.shape(img)[1]), scale))
52+
h_new = tf.to_int32(tf.multiply(tf.to_float(tf.shape(img)[1]), scale))
53+
w_new = tf.to_int32(tf.multiply(tf.to_float(tf.shape(img)[1]), scale))
5454
new_shape = tf.squeeze(tf.pack([h_new, w_new]), squeeze_dims=[1])
5555

5656
img = tf.image.resize_images(img, new_shape)

0 commit comments

Comments
 (0)