This commit is contained in:
Eren G??lge 2023-05-24 00:17:25 +02:00
parent a480f54763
commit ec1d6d66cf
1 changed files with 1 additions and 1 deletions

View File

@ -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: