We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 076e2f7 commit 3d85a2cCopy full SHA for 3d85a2c
examples/instance_kind/model.py
@@ -45,7 +45,12 @@ def initialize(self, args):
45
the default device of the framework.
46
"""
47
self.device = 'cuda' if args["model_instance_kind"] == "GPU" else 'cpu'
48
- self.model = torch.hub.load("pytorch/vision",
+ # This example is configured to work with torch=1.13
49
+ # and torchvision=0.14. Thus, we need to provide a proper tag `0.14.1`
50
+ # to make sure loaded Resnet50 is compatible with
51
+ # installed `torchvision`.
52
+ # Refer to README for installation instructions.
53
+ self.model = torch.hub.load("pytorch/vision:v0.14.1",
54
"resnet50",
55
weights="IMAGENET1K_V2",
56
skip_validation=True)\
0 commit comments