DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Data Engineering
  3. IoT
  4. GAN Lab: Generated Adversarial Networks In Your Browser!

GAN Lab: Generated Adversarial Networks In Your Browser!

Many of us have heard about generative adversarial systems, but they probably still seem mysterious. Here is an interactive demo that lets you interact, watch, and learn.

Emmett Coin user avatar by
Emmett Coin
·
Sep. 21, 18 · Opinion
Like (1)
Save
Tweet
Share
4.15K Views

Join the DZone community and get the full member experience.

Join For Free

This GitHub project is a highly interactive graphic demonstration of the features and operations of a generated adversarial network using TensorFow.js. It is based on work done by Minsuk Kahng, Nikhil Thorat, Duen Horng (Polo) Chau, Fernanda B. Viegas, and Martin Wattenberg in their paper: GAN Lab: Understanding Complex Deep Generative Models using Interactive Visual Experimentation.

Full disclosure: The data sets are small enough and simple enough to demonstrate the technology but clearly are not full-blown image processing examples, which can often consume a lot (CPU/years?) of computer time. But these small examples provide an excellent introduction into what is going on. It takes away the spooky magic...which is a good thing! 

One nice thing about this interactive demo is that it doesn't try to make things too simple. It does make pretty moving pictures of the system in action. And it does provide slightly mesmerizing animations of learning in action that would please kids in kindergarten and, for that matter, kids of all ages. It won't teach much to a seasoned AI scientist, but it will create rewarding "aha" moments for smart, curious developers working in other computer science fields. Here's what the control panel looks like:

Image title

Generative Adversarial Networks (GANs) are a relatively new breed of Neural Networks. Most practitioners in the field would credit Ian J Goodfellow et al. as one of the key introductory papers on the topic: Generative Adversarial Nets published in 2014. 

Here is a short video showing how it works:


GAN Lab cleanly demonstrates the power of TensorFlow.js. All of the AI functionality is actually done in your browser via JavaScript! And the reason it works so well is because TensorFlow.js takes advantage of the GPUs that are integral to your PC's high-performance graphics processing (which is pretty standard these days). Before diving into the demo, I would recommend reading their extremely clear and genuinely helpful description of the project on their GANLAB GitHub page. The introductory and educational descriptions are well worth the five-minute read and can be found immediately below the interactive demo proper.

Another nice and cognitively intuitive feature is the ability to input data sets and a graphical gestural manner. You can just spray some data points on the grid and see what happens.

Image title

There are other interesting controls too. One I found useful while trying to understand exactly what was happening through the epochs of training was the ability to select normal, slow motion, and even single step functionality. This allows you to see the big picture, but for me, it was interesting to watch individual data points and see how they behaved individually.

You can even peek under the hood and see what's happening inside the generator (the part of the system that creates variations to be tested) as well as peer into the inner workings of the discriminator (the part of the system that quantifies how different the generated adversaries are).

Image title

So, if you're interested in learning about generated adversarial networks, then I recommend GAN Lab as a fun, educational, and stimulating playground!

Generative adversarial network Network

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Core Machine Learning Metrics
  • The 31 Flavors of Data Lineage and Why Vanilla Doesn’t Cut It
  • Utilize OpenAI API to Extract Information From PDF Files
  • Apache Kafka vs. Memphis.dev

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: