{"id":229,"date":"2019-06-27T20:39:59","date_gmt":"2019-06-27T20:39:59","guid":{"rendered":"https:\/\/www.danielparente.net\/en\/2019\/06\/27\/how-to-develop-a-gan-for-generating-handwritten-digits\/"},"modified":"2019-06-27T22:44:27","modified_gmt":"2019-06-27T22:44:27","slug":"how-to-develop-a-gan-for-generating-handwritten-digits","status":"publish","type":"post","link":"https:\/\/www.danielparente.net\/en\/2019\/06\/27\/how-to-develop-a-gan-for-generating-handwritten-digits\/","title":{"rendered":"How to Develop a GAN for Generating Handwritten Digits"},"content":{"rendered":"<p>How to Develop a GAN for Generating Handwritten Digits<\/p>\n<p>&nbsp;<\/p>\n<p>Generative Adversarial Networks, or GANs, are an architecture for training generative models, such as deep convolutional neural networks for generating images.<\/p>\n<p>Developing a GAN for generating images requires both a discriminator convolutional neural network model for classifying whether a given image is real or generated and a generator model that uses inverse convolutional layers to transform an input to a full two-dimensional image of pixel values.<\/p>\n<p>It can be challenging to understand both how GANs work and how deep convolutional neural network models can be trained in a GAN architecture for image generation. Using small and well-understood datasets means that smaller models can be developed and trained quickly, allowing the focus to be put on the model architecture and image generation process itself.<\/p>\n<p>If you follow the attached tutorial, you will be able to discover how to develop a generative adversarial network with deep convolutional networks for generating handwritten digits:<\/p>\n<p>After completing this tutorial, you will know:<\/p>\n<p>How to define and train the standalone discriminator model for learning the difference between real and fake images.<br \/>\nHow to define the standalone generator model and train the composite generator and discriminator model.<br \/>\nHow to evaluate the performance of the GAN and use the final standalone generator model to generate new images.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>https:\/\/machinelearningmastery.com\/how-to-develop-a-generative-adversarial-network-for-an-mnist-handwritten-digits-from-scratch-in-keras\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Develop a GAN for Generating Handwritten Digits &nbsp; Generative Adversarial Networks, or GANs, are an architecture for training generative models, such as deep convolutional neural networks for generating images. Developing a GAN for generating images requires both a discriminator convolutional neural network model for classifying whether a given image is real or generated [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":237,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_post_was_ever_published":false},"categories":[94,98],"tags":[],"class_list":["post-229","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-artificial-intelligence","category-machine-learning"],"blocksy_meta":[],"jetpack_featured_media_url":"https:\/\/e928cfdc7rs.exactdn.com\/info\/uploads\/sites\/3\/2019\/06\/Example-of-25-MNIST-Images-Output-by-the-Untrained-Generator-Model.png?strip=all","jetpack_shortlink":"https:\/\/wp.me\/p2TFCd-3H","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":2,"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/posts\/229\/revisions\/238"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/media\/237"}],"wp:attachment":[{"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.danielparente.net\/en\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}