hpoghos commited on
Commit
6be531d
1 Parent(s): 373be50

Update t2v_enhanced/model_init.py

Browse files
Files changed (1) hide show
  1. t2v_enhanced/model_init.py +1 -1
t2v_enhanced/model_init.py CHANGED
@@ -101,7 +101,7 @@ def init_streamingt2v_model(ckpt_file, result_fol):
101
 
102
  model = cli.model
103
  model.load_state_dict(torch.load(
104
- cli.config["ckpt"].as_posix())["state_dict"])
105
  return cli, model
106
 
107
 
 
101
 
102
  model = cli.model
103
  model.load_state_dict(torch.load(
104
+ cli.config["ckpt"].as_posix(), map_location=torch.device('cpu'))["state_dict"], strict=False)
105
  return cli, model
106
 
107