changed invalid argument in model load
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ checkpoint = torch.load('model.pth', map_location='cpu')
|
|
37 |
print(checkpoint.keys())
|
38 |
|
39 |
# Load the model weights
|
40 |
-
model.load_state_dict(checkpoint['model'], strict=False
|
41 |
|
42 |
# If you need to resume training, load optimizer and scheduler states
|
43 |
optimizer.load_state_dict(checkpoint['optimizer_state_dict'])
|
|
|
37 |
print(checkpoint.keys())
|
38 |
|
39 |
# Load the model weights
|
40 |
+
model.load_state_dict(checkpoint['model'], strict=False)
|
41 |
|
42 |
# If you need to resume training, load optimizer and scheduler states
|
43 |
optimizer.load_state_dict(checkpoint['optimizer_state_dict'])
|