chineseocr / chineseocr

yolo3+ocr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

服务启动时提示'str' object has no attribute 'decode'错误消息

jianhuili opened this issue · comments

我下载最新版本代码和模型后,启动服务时提示了以下错误消息。使用默认Config配置。请问是那个地方的配置有问题。
运行环境为MAC,使用Cona构建的环境。

`
from text.keras_detect import text_detect
File "/chineseocr/text/keras_detect.py", line 20, in
textModel.load_weights(kerasTextModel)

File "/Users/xxx/Anaconda/anaconda3/envs/chineseocr/lib/python3.6/site-packages/tensorflow/python/keras/_impl/keras/engine/network.py", line 1190, in load_weights
saving.load_weights_from_hdf5_group(f, self.layers)

File "/Users/xxx/Anaconda/anaconda3/envs/chineseocr/lib/python3.6/site-packages/tensorflow/python/keras/_impl/keras/engine/saving.py", line 671, in load_weights_from_hdf5_group
original_keras_version = f.attrs['keras_version'].decode('utf8')

AttributeError: 'str' object has no attribute 'decode'
`

和你一模一样的问题,请问解决了吗?

commented