Skip to content

How to get model summary #1854

Discussion options

You must be logged in to vote

Hi @ThanhNX0401 👋,

The issue is that you run with Keras v3 but docTR depends on Keras v2

Ensure that the following is installed:

"tf-keras>=2.15.0,<3.0.0"

pip3 install tf-keras

For safety you can put the following on top of your script before all other imports:

from doctr.file_utils import ensure_keras_v2

ensure_keras_v2()

Then your script should run as expected.

Hope this helps.

Best,
Felix

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThanhNX0401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants