LayoutLLM-T2I / combine.py
leigangqu's picture
upload ckpt
a723b78 verified
raw
history blame contribute delete
304 Bytes
import torch
chunk0 = torch.load('./checkpoints_00335001_model_chunk0.pth')
chunk1 = torch.load('./checkpoints_00335001_model_chunk1.pth')
others = torch.load('./checkpoints_00335001_others.pth')
model = {**chunk0, **chunk1}
res = {'model': model, **others}
torch.save(res, './checkpoints_00335001.pth')