Spaces:
Runtime error
Runtime error
Update t2v_enhanced/model_init.py
Browse files
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 |
|