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

VQ-ResNet Saving Fix #68

Closed FlorianPfisterer closed 6 years ago

FlorianPfisterer commented 6 years ago

This PR refactors the saver paths used in the model, because they did not make much sense before.

Now, when using a ResNet-descendant, the following flags are used as described:

Also, a new flag has been introduced, which is used to name the stored checkpoint files (which are saved to the save_directory directory): the name flag.

The code has been tested using a VQResNet model with one vq-layer, first only restoring the pretrained ALP-weights, then saving the complete model to a save_directory and then later restoring the complete graph, including the vq embedding space.