mirror of https://github.com/coqui-ai/TTS.git
Pass cpu
This commit is contained in:
parent
a480f54763
commit
ec1d6d66cf
|
@ -2,7 +2,7 @@ import torch
|
|||
|
||||
|
||||
def rehash_fairseq_vits_checkpoint(checkpoint_file):
|
||||
chk = torch.load(checkpoint_file)["model"]
|
||||
chk = torch.load(checkpoint_file, map_location=torch.device('cpu'))["model"]
|
||||
new_chk = {}
|
||||
for k, v in chk.items():
|
||||
if "enc_p." in k:
|
||||
|
|
Loading…
Reference in New Issue