iscyy / yoloair

🔥🔥🔥 专注于YOLOv5,YOLOv7、YOLOv8、YOLOv9改进模型,Support to improve backbone, neck, head, loss, IoU, NMS and other modules🚀
https://github.com/iscyy/yoloair
GNU General Public License v3.0
2.51k stars 430 forks source link

UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 233: illegal multibyte sequence #85

Closed nooicess closed 2 years ago

nooicess commented 2 years ago

Search before asking

YOLOAir Component

Training

Bug

VA3A_H{Q%2E4PT@ 124UTRD

Environment

No response

Minimal Reproducible Example

No response

Additional

使用的yolov7里面的train,外面的train没有这个问题

Are you willing to submit a PR?

iscyy commented 2 years ago

What training command was used?

nooicess commented 2 years ago

What training command was used? 解决了,使用的yolov7/train.py。66行加个encoding='utf-8' 可以了 with open(opt.data,encoding='utf-8') as f:
data_dict = yaml.load(f, Loader=yaml.SafeLoader) # data dict

zhongsir771 commented 1 year ago

帮大忙啦,兄弟,thanks!