rockchip-linux / rknn-toolkit

BSD 3-Clause "New" or "Revised" License
830 stars 175 forks source link

error "invalid start byte" when load caffemodel #447

Open ugamug opened 7 months ago

ugamug commented 7 months ago

error message:

E Catch exception when loading caffe model: ./fcls_231119_onet.caffemodel!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 296, in rknn.api.rknn_base.RKNNBase.load_caffe
E   File "rknn/base/RKNNlib/RK_nn.py", line 76, in rknn.base.RKNNlib.RK_nn.RKnn.load_caffe
E   File "rknn/base/RKNNlib/converter/caffeloader.py", line 1110, in rknn.base.RKNNlib.converter.caffeloader.CaffeLoader.load
E   File "/root/miniconda3/envs/torch2rknn/lib/python3.6/codecs.py", line 321, in decode
E     (result, consumed) = self._buffer_decode(data, self.errors, final)
E UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 20: invalid start byte