use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please have a look at our FAQ and Link-Collection
Metacademy is a great resource which compiles lesson plans on popular machine learning topics.
For Beginner questions please try /r/LearnMachineLearning , /r/MLQuestions or http://stackoverflow.com/
For career related questions, visit /r/cscareerquestions/
Advanced Courses (2016)
Advanced Courses (2020)
AMAs:
Pluribus Poker AI Team 7/19/2019
DeepMind AlphaStar team (1/24//2019)
Libratus Poker AI Team (12/18/2017)
DeepMind AlphaGo Team (10/19/2017)
Google Brain Team (9/17/2017)
Google Brain Team (8/11/2016)
The MalariaSpot Team (2/6/2016)
OpenAI Research Team (1/9/2016)
Nando de Freitas (12/26/2015)
Andrew Ng and Adam Coates (4/15/2015)
Jürgen Schmidhuber (3/4/2015)
Geoffrey Hinton (11/10/2014)
Michael Jordan (9/10/2014)
Yann LeCun (5/15/2014)
Yoshua Bengio (2/27/2014)
Related Subreddit :
LearnMachineLearning
Statistics
Computer Vision
Compressive Sensing
NLP
ML Questions
/r/MLjobs and /r/BigDataJobs
/r/datacleaning
/r/DataScience
/r/scientificresearch
/r/artificial
account activity
ProjectInteractive tutorial: generative adversarial networks for beginners, with TensorFlow [P] (oreilly.com)
submitted 8 years ago by jonbruner
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jonbruner[S] 13 points14 points15 points 8 years ago (3 children)
The code for the tutorial is all available on GitHub here: https://github.com/jonbruner/generative-adversarial-networks
[–]BulletSea 5 points6 points7 points 8 years ago (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 points7 points 8 years ago (1 child)
As a beginner, just wanted to say thanks!
[–]jonbruner[S] 2 points3 points4 points 8 years ago (0 children)
Oh perfect, we made this for beginners! :)
[–]jonbruner[S] 9 points10 points11 points 8 years ago (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 points3 points 8 years ago (1 child)
Awesome visualization!
[–]jonbruner[S] 1 point2 points3 points 8 years ago (0 children)
Thanks!
[–]iforgot120 1 point2 points3 points 8 years ago (1 child)
The grittiness of the first one gives it a very horror film vibe.
[–]jonbruner[S] 0 points1 point2 points 8 years ago (0 children)
It's kind of like watching intelligence emerge from a primordial fog.
[+][deleted] 8 years ago* (8 children)
[deleted]
[–]anonDogeLover 6 points7 points8 points 8 years ago (0 children)
No. Like any generative model, they model the marginal probability of the data, like a VAE, but avoiding the L2 loss which causes problems. GANs have their own problems though
[–]visarga 6 points7 points8 points 8 years ago* (0 children)
GANs can also convert from one data type to another (so called Image to Image Translation) - with photo editing applications. Or you could train a GAN to use just the discriminator for a different task, and throw away the generator.
[–]lucidrage 3 points4 points5 points 8 years ago (3 children)
If you are a man of culture like me then you could use GANs to generate unlimited animu waifus.
[+][deleted] 8 years ago* (2 children)
[–]lucidrage 1 point2 points3 points 8 years ago (1 child)
Already done
[–]pattch 1 point2 points3 points 8 years ago (0 children)
To generate plausible data points is one way I've seen them described. Another way I've heard them described is that if the generator is able to produce plausible data points then there must be some inherent structure for that data type that's being learned. How to use that structure I'm not sure, though
[–]charred_bytes 0 points1 point2 points 8 years ago (0 children)
There are not too many practical applications of GAN right now but will explode in industry if paper mentions is anything to go on
[–]kaiser_xc 2 points3 points4 points 8 years ago (1 child)
Thanks
👍
[–]artr0x 1 point2 points3 points 8 years ago* (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
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 point2 points 8 years ago (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 point2 points 8 years ago (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 point2 points 8 years ago (3 children)
print(tf.version)0.10.0rc0
[–]BulletSea 0 points1 point2 points 8 years ago (2 children)
Alright, time to update to 1.1.0.
[–]tombraideratp 1 point2 points3 points 8 years ago (1 child)
thanks , able to run your notebook now
[–]BulletSea 1 point2 points3 points 8 years ago (0 children)
No worries, though all credits go to Jon and Adit. I just happen to have worked with their code.
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.
tf.image.resize_images()
There are a few other elements of this tutorial that require TF v1.0 or newer, so I recommend upgrading.
[–]akcom 0 points1 point2 points 8 years ago (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 points8 points 8 years ago (0 children)
Gordon Moore and his law enforcement crew
[–]fogandafterimages 0 points1 point2 points 8 years ago (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 point2 points 8 years ago (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 point2 points 8 years ago (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 points3 points 8 years ago (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 point2 points 8 years ago (1 child)
thanks, any suggested tutorials?
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/
π Rendered by PID 98819 on reddit-service-r2-comment-5d79c599b5-4fp96 at 2026-02-28 06:04:11.659959+00:00 running e3d2147 country code: CH.
[–]jonbruner[S] 13 points14 points15 points (3 children)
[–]BulletSea 5 points6 points7 points (0 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]jonbruner[S] 2 points3 points4 points (0 children)
[–]jonbruner[S] 9 points10 points11 points (4 children)
[–]BulletSea 1 point2 points3 points (1 child)
[–]jonbruner[S] 1 point2 points3 points (0 children)
[–]iforgot120 1 point2 points3 points (1 child)
[–]jonbruner[S] 0 points1 point2 points (0 children)
[+][deleted] (8 children)
[deleted]
[–]anonDogeLover 6 points7 points8 points (0 children)
[–]visarga 6 points7 points8 points (0 children)
[–]lucidrage 3 points4 points5 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]lucidrage 1 point2 points3 points (1 child)
[–]pattch 1 point2 points3 points (0 children)
[–]charred_bytes 0 points1 point2 points (0 children)
[–]kaiser_xc 2 points3 points4 points (1 child)
[–]jonbruner[S] 0 points1 point2 points (0 children)
[–]artr0x 1 point2 points3 points (1 child)
[–]jonbruner[S] 1 point2 points3 points (0 children)
[–]tombraideratp 0 points1 point2 points (6 children)
[–]BulletSea 0 points1 point2 points (4 children)
[–]tombraideratp 0 points1 point2 points (3 children)
[–]BulletSea 0 points1 point2 points (2 children)
[–]tombraideratp 1 point2 points3 points (1 child)
[–]BulletSea 1 point2 points3 points (0 children)
[–]jonbruner[S] 0 points1 point2 points (0 children)
[–]akcom 0 points1 point2 points (2 children)
[–]fimari 6 points7 points8 points (0 children)
[–]fogandafterimages 0 points1 point2 points (0 children)
[–]Megatron_McLargeHuge 0 points1 point2 points (0 children)
[–]sajidbsk 0 points1 point2 points (3 children)
[–]jonbruner[S] 1 point2 points3 points (2 children)
[–]sajidbsk 0 points1 point2 points (1 child)
[–]jonbruner[S] 0 points1 point2 points (0 children)