Phoenix3238 commited on
Commit
b90ece2
·
verified ·
1 Parent(s): de4d010

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def load_model():
19
  in_features = model.classifier[2].in_features
20
  model.classifier[2] = nn.Sequential(
21
  nn.Dropout(p=0.5), # Standard dropout layer (index 0)
22
- nn.Linear(in_features, len(class_names)) # Linear layer (index 1)
23
  )
24
 
25
  state_dict = torch.load("convnext_caltech101.pth", map_location=device)
 
19
  in_features = model.classifier[2].in_features
20
  model.classifier[2] = nn.Sequential(
21
  nn.Dropout(p=0.5), # Standard dropout layer (index 0)
22
+ nn.Linear(in_features, 102) # Linear layer (index 1)
23
  )
24
 
25
  state_dict = torch.load("convnext_caltech101.pth", map_location=device)