赞
踩
E:\yolov3-keras-master>python convert2keras_weights.py yolov3.cfg yolov3.weights pretrained_weights/yolo.h5
Using TensorFlow backend.
Loading weights.
Weights Header: 0 2 0 [32013312]
Parsing Darknet config.
Traceback (most recent call last):
File "convert2keras_weights.py", line 263, in <module>
_main(parser.parse_args())
File "convert2keras_weights.py", line 84, in _main
unique_config_file = unique_config_sections(config_path)
File "convert2keras_weights.py", line 48, in unique_config_sections
for line in fin:
UnicodeDecodeError: 'gbk' codec can't decode byte 0xae in position 6452: illegal multibyte sequence
with open(config_file) as fin:
with open(config_file,'r', encoding='UTF-8') as fin:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。