Spaces:
Running
on
Zero
Running
on
Zero
device
Browse files
diffrhythm/infer/infer_utils.py
CHANGED
@@ -35,7 +35,7 @@ def prepare_model(device):
|
|
35 |
# prepare vae
|
36 |
vae_ckpt_path = hf_hub_download(repo_id="ASLP-lab/DiffRhythm-vae", filename="vae_model.pt")
|
37 |
print(f"****************** {device} ******************")
|
38 |
-
vae = torch.jit.load(vae_ckpt_path
|
39 |
|
40 |
return cfm, tokenizer, muq, vae
|
41 |
|
|
|
35 |
# prepare vae
|
36 |
vae_ckpt_path = hf_hub_download(repo_id="ASLP-lab/DiffRhythm-vae", filename="vae_model.pt")
|
37 |
print(f"****************** {device} ******************")
|
38 |
+
vae = torch.jit.load(vae_ckpt_path, map_location=device)
|
39 |
|
40 |
return cfm, tokenizer, muq, vae
|
41 |
|