Simsso / NIPS-2018-Adversarial-Vision-Challenge

Code, documents, and deployment configuration files, related to our participation in the 2018 NIPS Adversarial Vision Challenge "Robust Model Track"
MIT License
10 stars 1 forks source link

Vector Quantization Layer Prototype #52

Closed Simsso closed 5 years ago

Simsso commented 5 years ago

This PR contains a vector quantization (VQ) prototype that was developed and tested in four Jupyter notebooks.

The code is not production-ready and only there for the sake of experimenting (it is located in /experiments). The well-tested and functionally extended version can now be developed based on this prototype (#51). Merging of this PR resolves #25.

The work can be found here (please review the four files + README.md):

Simsso commented 5 years ago

Great notebook, @FlorianPfisterer.
Here is my review on the vq_layer function definition.

FlorianPfisterer commented 5 years ago

This loss term is similar to the VQ-VAE paper

Well, that's because my experiments where based on the paper 😆. We're not going to train the conv layers, but it still adds a gradient flow that might be relevant for another VQ-layer further upstream.