Publishing and Using Pretrained model through `Torch.hub`
Motivation This is a simple example.
https://github.com/ProGamerGov/pytorch-old-tensorflow-models
if pretrained: self.load_state_dict(torch.hub.load_state_dict_from_url(model_urls['inceptionv1'], progress=progress)) The official blog about how to use this is here.
Hosting Weights The major challenge is to publish weight online. For that you need a public file hosting service, which Google Drive and OneDrive can do.
Jun 3, 2020