PaddlePaddle / PaddleDetection

Object Detection toolkit based on PaddlePaddle. It supports object detection, instance segmentation, multiple object tracking and real-time multi-person keypoint detection.
Apache License 2.0
12.78k stars 2.88k forks source link

cascade_rcnn_dcn_r50_vd_fpn_3x_server_side.yml训练问题: #2105

Closed jackie8310 closed 3 years ago

jackie8310 commented 3 years ago

配置文件未作修改,运行报错,同样的数据集跑其他模型OK (paddle_env) G:\paddle\PaddleDetection0.5>python tools/train.py -c configs/rcnn_enhance/cascade_rcnn_dcn_r50_vd_fpn_3x_server_side123.yml --eval -o use_gpu=true Traceback (most recent call last): File "tools/train.py", line 377, in main() File "tools/train.py", line 71, in main cfg = load_config(FLAGS.config) File "G:\paddle\PaddleDetection0.5\ppdet\core\workspace.py", line 86, in load_config cfg = merge_config(yaml.load(f, Loader=yaml.Loader), cfg) File "D:\anaconda\envs\paddle_env\lib\site-packages\yaml__init.py", line 112, in load loader = Loader(stream) File "D:\anaconda\envs\paddle_env\lib\site-packages\yaml\loader.py", line 44, in init Reader.init(self, stream) File "D:\anaconda\envs\paddle_env\lib\site-packages\yaml\reader.py", line 85, in init__ self.determine_encoding() File "D:\anaconda\envs\paddle_env\lib\site-packages\yaml\reader.py", line 124, in determine_encoding self.update_raw() File "D:\anaconda\envs\paddle_env\lib\site-packages\yaml\reader.py", line 178, in update_raw data = self.stream.read(size) UnicodeDecodeError: 'gbk' codec can't decode byte 0x8c in position 784: illegal multibyte sequence

yghstill commented 3 years ago

@wangkan83 你这个配置文件修改了哪里?有中文字符导致解析yaml报错,改成英文字符即可。

jackie8310 commented 3 years ago

@yghstill ,找到问题了,thanks a lot!