提交 257c722d 编写于 作者: Eric.Lee2021's avatar Eric.Lee2021 🚴🏻

update

上级 8aee7a26
......@@ -150,8 +150,7 @@ def trainer(ops,f_log):
optimizer.zero_grad()
step += 1
torch.save(model_.state_dict(), ops.model_exp + '{}-model_epoch-{}.pth'.format(ops.model,epoch))
torch.save(model_.state_dict(), ops.model_exp + '{}-size-{}-model_epoch-{}.pth'.format(ops.model,ops.img_size[0],epoch))
except Exception as e:
print('Exception : ',e) # 打印异常
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册