用于python 3.x
替换:(搜索open即可,找到所有open关键词),后面添加utf-8
with open(Path(ckpt).parent.parent / ‘opt.yaml’) as f:
为
with open(Path(ckpt).parent.parent / ‘opt.yaml’, encoding=‘utf-8’) as f:
用于python 3.x
替换:(搜索open即可,找到所有open关键词),后面添加utf-8
with open(Path(ckpt).parent.parent / ‘opt.yaml’) as f:
为
with open(Path(ckpt).parent.parent / ‘opt.yaml’, encoding=‘utf-8’) as f: