guanshuicheng / invoice

Collaboration with wangxupeng(https://github.com/wangxupeng)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'tensorflow_core.keras.backend' has no attribute 'get_session'

tommyxiang opened this issue · comments

I got the error like this :

Traceback (most recent call last):
File "app.py", line 14, in
from model_post_type import ocr as OCR
File "/Users/xianglingyun/invoice_ocr/invoice-master/model_post_type.py", line 32, in
from text import keras_detect_type as detect
File "/Users/xianglingyun/invoice_ocr/invoice-master/text/keras_detect_type.py", line 19, in
sess = K.get_session()

can you tell me how to fix it?

you version is too higer