guanshuicheng / invoice

Collaboration with wangxupeng(https://github.com/wangxupeng)
MIT License
1.81k stars 447 forks source link

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

Open tommyxiang opened 2 years ago

tommyxiang commented 2 years ago

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?

Sai1978 commented 1 year ago

you version is too higer