cherubicxn commited on
Commit
e33fa08
·
1 Parent(s): 1828c29
Files changed (1) hide show
  1. scalelsd/ssl/misc/train_utils.py +1 -1
scalelsd/ssl/misc/train_utils.py CHANGED
@@ -46,7 +46,7 @@ def load_scalelsd_model(ckpt_path, device='cuda'):
46
 
47
  model = ScaleLSD(gray_scale=True, use_layer_scale=use_layer_scale)
48
  model = model.eval().to(device)
49
- state_dict = torch.load(ckpt_path, map_location='cpu',weights_only=False)
50
  try:
51
  model.load_state_dict(state_dict['model_state'])
52
  except:
 
46
 
47
  model = ScaleLSD(gray_scale=True, use_layer_scale=use_layer_scale)
48
  model = model.eval().to(device)
49
+ state_dict = torch.load(ckpt_path, map_location='cpu', weights_only=True)
50
  try:
51
  model.load_state_dict(state_dict['model_state'])
52
  except: