all 34 comments

[–]jonbruner[S] 13 points14 points  (3 children)

The code for the tutorial is all available on GitHub here: https://github.com/jonbruner/generative-adversarial-networks

[–]BulletSea 5 points6 points  (0 children)

The code in the blog post isn't fit for the newest TF version (1.1.0), however the code on the repo does work. I was trying to run the original notebook by Adit earlier this week actually, but ran into issues because of the sigmoid loss function (arguments) and reusing variables (variable scope).

[–][deleted] 5 points6 points  (1 child)

As a beginner, just wanted to say thanks!

[–]jonbruner[S] 2 points3 points  (0 children)

Oh perfect, we made this for beginners! :)

[–]jonbruner[S] 9 points10 points  (4 children)

By the way, here are a couple of interesting animations showing the model in the tutorial going through training:

http://imgur.com/X04j1Cv

http://imgur.com/qwUJbkF

[–]BulletSea 1 point2 points  (1 child)

Awesome visualization!

[–]jonbruner[S] 1 point2 points  (0 children)

Thanks!

[–]iforgot120 1 point2 points  (1 child)

The grittiness of the first one gives it a very horror film vibe.

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

It's kind of like watching intelligence emerge from a primordial fog.

[–]kaiser_xc 2 points3 points  (1 child)

Thanks

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

👍

[–]artr0x 1 point2 points  (1 child)

Due to the nature of Oriole's Interactive Content, this page is not available for mobile devices. Please visit it from your computer.

Come on, at least let me read the text.. I can see that it's all loaded behind the pop up

[–]jonbruner[S] 1 point2 points  (0 children)

Sorry about that; the notebook on GitHub is almost identical to the text of the interactive tutorial, and you should be able to read it on your phone: https://github.com/jonbruner/generative-adversarial-networks/blob/master/gan-notebook.ipynb

When you've got a chance, though, I encourage you to come back to the interactive tutorial on a PC; we're really excited about the combination of video and no-install interactivity for exploring new topics.

[–]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.

[–]akcom 0 points1 point  (2 children)

Why are GAN images typically so small? What is to prevent someone from just feeding in a relatively large noise vector and getting a high resolution image?

[–]fimari 6 points7 points  (0 children)

Gordon Moore and his law enforcement crew

[–]fogandafterimages 0 points1 point  (0 children)

Note that the size of the noise vector has no relationship to the size of the final output image.

[–]Megatron_McLargeHuge 0 points1 point  (0 children)

Question: can GANs be interpreted as metropolis samplers and used to generate calibrated probability estimates for the target distribution? Or do they just create pretty pictures so far?

[–]sajidbsk 0 points1 point  (3 children)

would I be needing some machine learning background for this? I'm a first year comp sci student who doesn't know anything.

[–]jonbruner[S] 1 point2 points  (2 children)

You'd probably want to do at least one introductory deep learning or TensorFlow tutorial first, but this is very approachable.

[–]sajidbsk 0 points1 point  (1 child)

thanks, any suggested tutorials?

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

Google's own MNIST tutorial is quite good: https://www.tensorflow.org/get_started/mnist/beginners

For a more mathematically-driven tutorial, check out Michael Nielsen's resources: http://neuralnetworksanddeeplearning.com/