How to get model summary #1854
-
i try to run the code but it got error no matter what model i run: import tensorflow as tf This is the error: AttributeError: 'Activation' object has no attribute 'get_output_at' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ThanhNX0401 👋, The issue is that you run with Keras v3 but docTR depends on Keras v2 Ensure that the following is installed:
For safety you can put the following on top of your script before all other imports:
Then your script should run as expected. Hope this helps. Best, |
Beta Was this translation helpful? Give feedback.
Hi @ThanhNX0401 👋,
The issue is that you run with Keras v3 but docTR depends on Keras v2
Ensure that the following is installed:
pip3 install tf-keras
For safety you can put the following on top of your script before all other imports:
Then your script should run as expected.
Hope this helps.
Best,
Felix