今天用yolo.py检查yolov7的网络结构,先开始好着的后面突然报这个错。
修改方法如下:ctrl+F搜索with open
在括号里面加上encoding=‘utf-8’
with open(cfg,encoding='utf-8') as f:
self.yaml = yaml.load(f, Loader=yaml.SafeLoader) # model dict
今天用yolo.py检查yolov7的网络结构,先开始好着的后面突然报这个错。
修改方法如下:ctrl+F搜索with open
在括号里面加上encoding=‘utf-8’
with open(cfg,encoding='utf-8') as f:
self.yaml = yaml.load(f, Loader=yaml.SafeLoader) # model dict