KurtHHHHHH commited on
Commit
1fb676d
·
verified ·
1 Parent(s): 3891ac3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -23,6 +23,7 @@ from torchvision.models import resnet50
23
  model = resnet50(weights=None)
24
 
25
  # Replace fc with the multi-layer head that matches checkpoint
 
26
  in_ch = model.fc.in_features
27
  model.fc = torch.nn.Linear(in_ch, num_classes)
28
  # model.fc = torch.nn.Sequential()
 
23
  model = resnet50(weights=None)
24
 
25
  # Replace fc with the multi-layer head that matches checkpoint
26
+ num_classes = 196
27
  in_ch = model.fc.in_features
28
  model.fc = torch.nn.Linear(in_ch, num_classes)
29
  # model.fc = torch.nn.Sequential()