Spaces:
Running
on
Zero
Running
on
Zero
xierui.0097
commited on
Commit
·
e03120f
1
Parent(s):
d0603ca
updatas
Browse files
video_to_video/video_to_video_model.py
CHANGED
@@ -52,7 +52,7 @@ class VideoToVideo_sr():
|
|
52 |
model_url = 'https://huggingface.co/SherryX/STAR/resolve/main/I2VGen-XL-based/heavy_deg.pt'
|
53 |
download_model(model_url, cfg.model_path)
|
54 |
|
55 |
-
load_dict = torch.load(cfg.model_path, map_location='cpu')
|
56 |
if 'state_dict' in load_dict:
|
57 |
load_dict = load_dict['state_dict']
|
58 |
ret = generator.load_state_dict(load_dict, strict=False)
|
|
|
52 |
model_url = 'https://huggingface.co/SherryX/STAR/resolve/main/I2VGen-XL-based/heavy_deg.pt'
|
53 |
download_model(model_url, cfg.model_path)
|
54 |
|
55 |
+
load_dict = torch.load(cfg.model_path + '/heavy_deg.pt' , map_location='cpu')
|
56 |
if 'state_dict' in load_dict:
|
57 |
load_dict = load_dict['state_dict']
|
58 |
ret = generator.load_state_dict(load_dict, strict=False)
|