hamsteryang commited on
Commit
b74d07d
·
1 Parent(s): 1d6ddc1

change model

Browse files

2023-08-31 14:06

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def create_densenet121_model(num_classes: int = 2, seed: int = 42):
36
  densenet, densenet_transforms = create_densenet121_model()
37
 
38
  # Load saved weights
39
- state_dict = torch.load("FL_global_model.pt", map_location=torch.device("cpu"))
40
  model_weights = state_dict["model"]
41
  densenet.load_state_dict(model_weights,strict=False) # Set strict to True since we now expect it to match
42
 
 
36
  densenet, densenet_transforms = create_densenet121_model()
37
 
38
  # Load saved weights
39
+ state_dict = torch.load("model/FL_global_model_4be885f7-8d33-4498-a5ef-85aa301706bd.pt", map_location=torch.device("cpu"))
40
  model_weights = state_dict["model"]
41
  densenet.load_state_dict(model_weights,strict=False) # Set strict to True since we now expect it to match
42