# 如
model = model.restnet50()
# 如果有保存好的训练文件,在后面加上下面几句话
resume = 'checkpoint-480.pth'
checkpoint = torch.load(resume)
model.load_state_dict (checkpoint['model'])
optimizer.load_state_dict
13-pytorch加载上次训练结果文件后继续训练
最新推荐文章于 2024-07-09 21:28:04 发布