解决’gbk’ codec can’t decode byte 0xbf in position 2报错:
报错信息如下:
报错了一大堆,其实只有一个地方错了,通过debug调试,得知:
只需将dataloader.py内的dataset.py内置代码:
with open(gt_path) as f:
改为:
with open(gt_path, encoding='utf-8-sig') as f:
即可
解决’gbk’ codec can’t decode byte 0xbf in position 2报错:
报错信息如下:
报错了一大堆,其实只有一个地方错了,通过debug调试,得知:
只需将dataloader.py内的dataset.py内置代码:
with open(gt_path) as f:
改为:
with open(gt_path, encoding='utf-8-sig') as f:
即可