when infer a image: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Created by: zhengbiqing
aistudio@jupyter-305239-473669:~/work/PaddleClas$ python tools/infer/predict.py -m output_ca/ResNet50_vd/last/model -p output_ca/ResNet50_vd/last/params -i ./test0.jpg --use_gpu=1 Traceback (most recent call last): File "tools/infer/predict.py", line 160, in main() File "tools/infer/predict.py", line 121, in main inputs = preprocess(args.image_file, operators) File "tools/infer/predict.py", line 88, in preprocess data = open(fname).read() File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
what the problem?