GenAIDevTOProd commited on
Commit
2f23199
·
verified ·
1 Parent(s): d97b069

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ classes = ['airplane', 'automobile', 'bird', 'cat', 'deer',
13
  # Load ResNet18 model and adapt final layer for CIFAR-10
14
  resnet18 = models.resnet18(pretrained=True)
15
  resnet18.fc = torch.nn.Linear(resnet18.fc.in_features, 10) # Replace final layer
16
- resnet18.load_state_dict(torch.load("/content/sample_data/resnet18_fft_cifar10.pth", map_location=torch.device('cpu')))
17
  resnet18.eval()
18
 
19
  # Image transform
 
13
  # Load ResNet18 model and adapt final layer for CIFAR-10
14
  resnet18 = models.resnet18(pretrained=True)
15
  resnet18.fc = torch.nn.Linear(resnet18.fc.in_features, 10) # Replace final layer
16
+ resnet18.load_state_dict(torch.load("resnet18_fft_cifar10.pth", map_location=torch.device('cpu')))
17
  resnet18.eval()
18
 
19
  # Image transform