RockeyCoss
add code files”
51f6859
raw
history blame contribute delete
No virus
264 Bytes
import torch
import argparse
parer = argparse.ArgumentParser()
parer.add_argument('source_file')
parer.add_argument('des_file')
args = parer.parse_args()
ckpt = torch.load(args.source_file, map_location='cpu')
ckpt = ckpt['model']
torch.save(ckpt, args.des_file)