wi-lab commited on
Commit
9a3c9ce
1 Parent(s): 08a8088

Update lwm_model.py

Browse files
Files changed (1) hide show
  1. 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), weights_only=True)
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