Skip to content

mwdchang/tfjs-gan

Repository files navigation

TensorflowJS GAN

A Generative Adversarial Network example generating hand-written digits, using just TensorflowJS APIs and vanilla javascript.

Source files

  • index.html: UI
  • gan.js: GAN code and hyper params
  • image-util.js: Image utility
  • data.js: Used to load MNIST dataset into compatible tensors, taken from tensorflow examples.
  • weights.js: Pre-trained weights/biases for the Generator.