rolpotamias commited on
Commit
3f09484
1 Parent(s): 9e2c72c

Update wilor/models/__init__.py

Browse files
Files changed (1) hide show
  1. wilor/models/__init__.py +1 -1
wilor/models/__init__.py CHANGED
@@ -32,5 +32,5 @@ def load_wilor(checkpoint_path, cfg_path):
32
  model_cfg.MANO.MEAN_PARAMS = './mano_data/mano_mean_params.npz'
33
  model_cfg.freeze()
34
 
35
- model = WiLoR.load_from_checkpoint(checkpoint_path, strict=False, cfg=model_cfg)
36
  return model, model_cfg
 
32
  model_cfg.MANO.MEAN_PARAMS = './mano_data/mano_mean_params.npz'
33
  model_cfg.freeze()
34
 
35
+ model = WiLoR.load_from_checkpoint(checkpoint_path, strict=False, cfg=model_cfg, map_location=torch.device("cpu"))
36
  return model, model_cfg