Update lwm_model.py
Browse files- lwm_model.py +1 -1
lwm_model.py
CHANGED
@@ -116,7 +116,7 @@ class lwm(torch.nn.Module):
|
|
116 |
model = cls().to(device)
|
117 |
|
118 |
ckpt_path = ckpt_name
|
119 |
-
model.load_state_dict(torch.load(ckpt_path, map_location=device)
|
120 |
print(f"Model loaded successfully from {ckpt_path} to {device}")
|
121 |
|
122 |
return model
|
|
|
116 |
model = cls().to(device)
|
117 |
|
118 |
ckpt_path = ckpt_name
|
119 |
+
model.load_state_dict(torch.load(ckpt_path, map_location=device))
|
120 |
print(f"Model loaded successfully from {ckpt_path} to {device}")
|
121 |
|
122 |
return model
|