changed to not download pretrained weights for ResNet18
This commit is contained in:
@@ -9,7 +9,7 @@ class ResNet18Head(nn.Module):
|
||||
super().__init__()
|
||||
# copy out parts from ResNet18 with weights
|
||||
resnet18 = torchvision.models.resnet18(
|
||||
weights=torchvision.models.ResNet18_Weights.IMAGENET1K_V1,
|
||||
# weights=torchvision.models.ResNet18_Weights.IMAGENET1K_V1,
|
||||
)
|
||||
# save relevant layers
|
||||
self.conv1 = resnet18.conv1
|
||||
|
||||
Reference in New Issue
Block a user