chenyilun95 / tf-cpn

Cascaded Pyramid Network for Multi-Person Pose Estimation (CVPR 2018)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnicodeDecodeError

chenxp106 opened this issue · comments

是我下载训练的json文件有错吗,读取person_keypoints_trainvalminusminival2014.json文件就会出错,但是读取person_keypoints_minival2014.json不会出错。出现提示:

coco = COCO('/home/home_data/cxp/code/tf-cpn/data/COCO/MSCOCO/annotations/person_keypoints_trainvalminusminival2014.json')
loading annotations into memory...
Traceback (most recent call last):
File "", line 1, in
File "/home/cv_user/anaconda3/lib/python3.6/site-packages/pycocotools/coco.py", line 84, in init
dataset = json.load(open(annotation_file, 'rb'))
File "/home/cv_user/anaconda3/lib/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/home/cv_user/anaconda3/lib/python3.6/json/init.py", line 349, in loads
s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc1 in position 19998724: invalid start byte