Commit
·
cd79e1e
1
Parent(s):
8df1ddb
bug fix
Browse files
model.py
CHANGED
|
@@ -120,6 +120,6 @@ def create_effnetb0(
|
|
| 120 |
model_path = model_dir_path / model_weights_name
|
| 121 |
|
| 122 |
# Load the state dictionary into the model
|
| 123 |
-
effnetb0_model.load_state_dict(torch.load(model_path, weights_only=True, map_location=torch.device('cpu')))
|
| 124 |
|
| 125 |
return effnetb0_model
|
|
|
|
| 120 |
model_path = model_dir_path / model_weights_name
|
| 121 |
|
| 122 |
# Load the state dictionary into the model
|
| 123 |
+
effnetb0_model.load_state_dict(torch.load(model_path, weights_only=True, map_location=torch.device('cpu')))
|
| 124 |
|
| 125 |
return effnetb0_model
|