samyak152002
commited on
Commit
•
5a3da59
1
Parent(s):
a7fc3b1
Update script
Browse files
script
CHANGED
@@ -10,7 +10,7 @@ device = torch.device("cpu")
|
|
10 |
model.to(device)
|
11 |
|
12 |
# Load the saved model state dictionary
|
13 |
-
model.load_state_dict(torch.load("
|
14 |
|
15 |
# Set the model to evaluation mode
|
16 |
model.eval()
|
|
|
10 |
model.to(device)
|
11 |
|
12 |
# Load the saved model state dictionary
|
13 |
+
model.load_state_dict(torch.load("model.pt", map_location=device))
|
14 |
|
15 |
# Set the model to evaluation mode
|
16 |
model.eval()
|