Created
July 24, 2018 15:48
-
-
Save xerxes01/6d1fe6276abf43a7e779bd5aab08f46a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from adversarial_vision_challenge import model_server | |
from model import create_fmodel | |
if __name__ == '__main__': | |
''' | |
Load your own model here. | |
Normally you would load a persisted model using your library of choice | |
and wrap it into a foolbox model. E.g. for PyTorch: | |
model = YourModel(...) | |
model.load_state_dict(torch.load('/path/to/your/model')) | |
foolbox.models.PyTorchModel(model, ...) | |
''' | |
foolbox_model=create_fmodel() | |
model_server(foolbox_model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment