Spaces:
Runtime error
Runtime error
haoheliu
commited on
Commit
·
ddc4da2
1
Parent(s):
412929c
update device
Browse files- audioldm/pipeline.py +1 -1
audioldm/pipeline.py
CHANGED
|
@@ -51,7 +51,7 @@ def build_model(config=None):
|
|
| 51 |
|
| 52 |
resume_from_checkpoint = "./ckpt/ldm_trimmed.ckpt"
|
| 53 |
|
| 54 |
-
checkpoint = torch.load(resume_from_checkpoint)
|
| 55 |
latent_diffusion.load_state_dict(checkpoint["state_dict"])
|
| 56 |
|
| 57 |
latent_diffusion.eval()
|
|
|
|
| 51 |
|
| 52 |
resume_from_checkpoint = "./ckpt/ldm_trimmed.ckpt"
|
| 53 |
|
| 54 |
+
checkpoint = torch.load(resume_from_checkpoint, map_location=device)
|
| 55 |
latent_diffusion.load_state_dict(checkpoint["state_dict"])
|
| 56 |
|
| 57 |
latent_diffusion.eval()
|