eyupipler commited on
Commit
8bd0e96
·
verified ·
1 Parent(s): f1c16be

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -56,7 +56,7 @@ def load_model(version='c', device='cpu'):
56
  repo_type="model"
57
  )
58
 
59
- model = SimpleCNN(model_type=model_type, num_classes=4).to(device)
60
  state_dict = torch.load(weights_path, map_location=device)
61
  model.load_state_dict(state_dict, strict=False)
62
  model.eval()
 
56
  repo_type="model"
57
  )
58
 
59
+ model = SimpleCNN(model_type=model_type, num_classes=6).to(device)
60
  state_dict = torch.load(weights_path, map_location=device)
61
  model.load_state_dict(state_dict, strict=False)
62
  model.eval()