强化学习王者荣耀项目修改
修改模型参数中的名字chkpt = torch.load('weights/model_weights_StateJudgmentPre', map_location="cuda:0")chkpt['fn_layer.weight'] = chkpt.pop('图转.weight')chkpt['fn_layer.bias'] = chkpt.pop('图转.bias')chkpt['evalua
·
修改模型参数中的名字
chkpt = torch.load('weights/model_weights_StateJudgmentPre', map_location="cuda:0")
chkpt['fn_layer.weight'] = chkpt.pop('图转.weight')
chkpt['fn_layer.bias'] = chkpt.pop('图转.bias')
chkpt['evaluate.weight'] = chkpt.pop('评价.weight')
chkpt['evaluate.bias'] = chkpt.pop('评价.bias')
torch.save(chkpt, './model_weights_StateJudgmentPreEn.pth')
更多推荐
已为社区贡献1条内容
所有评论(0)