yukkyo/voc2coco

UnicodeDecoderError in win10

wumy27 opened this issue · 0 comments


> E:\DOTA_dataset\coco2017>python voc2coco.py  --ann_dir annotations/train_xml --ann_ids train.txt --labels labels.txt --output train2017.json --ext xml
> Traceback (most recent call last):
>   File "voc2coco.py", line 151, in <module>
>     main()
>   File "voc2coco.py", line 140, in main
>     annpaths_list_path=args.ann_paths_list
>   File "voc2coco.py", line 32, in get_annpaths
>     ann_ids = f.read().split()
> UnicodeDecodeError: 'gbk' codec can't decode byte 0xff in position 0: illegal multibyte sequence

can anyone help me?