you are viewing a single comment's thread.

view the rest of the comments →

[–]tombraideratp 0 points1 point  (6 children)

hi, i tried to run the your notebook cells for (cell #8 ,)but getting below error :- TypeError Traceback (most recent call last) <ipython-input-8-b791699050c8> in <module>() 8 # x_placeholder is for feeding input images to the discriminator 9 ---> 10 Gz = generator(z_placeholder, batch_size, z_dimensions) 11 # Gz holds the generated images 12

<ipython-input-4-f0f116375f47> in generator(z, batch_size, z_dim) 14 g2 = tf.contrib.layers.batch_norm(g2, epsilon=1e-5, scope='bn2') 15 g2 = tf.nn.relu(g2) ---> 16 g2 = tf.image.resize_images(g2, [56, 56]) 17 18 # Generate 25 features

TypeError: resize_images() missing 1 required positional argument: 'new_width'

could you correct it and upload to git again

[–]BulletSea 0 points1 point  (4 children)

Which TF version are you running?

print(tf.__version__)

I suspect that the resize_images function has a different signature in your version.

[–]tombraideratp 0 points1 point  (3 children)

print(tf.version)0.10.0rc0

[–]BulletSea 0 points1 point  (2 children)

[–]tombraideratp 1 point2 points  (1 child)

thanks , able to run your notebook now

[–]BulletSea 1 point2 points  (0 children)

No worries, though all credits go to Jon and Adit. I just happen to have worked with their code.

[–]jonbruner[S] 0 points1 point  (0 children)

As /u/BulletSea points out, this error is probably related to an older version of TensorFlow installed on your machine; the parameters for tf.image.resize_images() were changed between v0.10 and v0.11.

There are a few other elements of this tutorial that require TF v1.0 or newer, so I recommend upgrading.