VAE Demo Page for MIT Spring 2018 6.883
.
├── index.html
├── model
│ ├── decoder_generator.png
│ ├── encoder.py
│ ├── mnist-cnn-vae.py
│ ├── model.bin
│ ├── model.h5
│ └── model_pb2.py
└── README.md
index.html: all html, javascript, css in one fileminst-cnn-vae.py: define and train CNN-VAE model, run withpython3 minst-cnn-vae.py, will producedecoder_generator.pngandmodel.h5decoder_generator.png: a visualization of the generated imagesencoder.py: (which usemodel_pb2.py): weight-wise quantization to 8-bit float, convertmodel.h5tomodel.bin, which is used by the javascript inindex.html
- Train a Keras model and save as
model.h5 - Convert the model by
encoder.py, getmodel.bin, place in./model/folder - Change the name of input layer and output layer line 43 and line 45 in
index.html - Check it works
- If you have any ideas and suggestions on improving the UI, please create a issue!