Skip to content

Instantly share code, notes, and snippets.

@xerxes01
Created July 24, 2018 15:48
Show Gist options
  • Save xerxes01/6d1fe6276abf43a7e779bd5aab08f46a to your computer and use it in GitHub Desktop.
Save xerxes01/6d1fe6276abf43a7e779bd5aab08f46a to your computer and use it in GitHub Desktop.
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