faustomorales / keras-ocr

A packaged and flexible version of the CRAFT text detector and Keras CRNN recognition model.
https://keras-ocr.readthedocs.io/
MIT License
1.41k stars 364 forks source link

ValueError: Unrecognized keyword arguments passed to Dense #255

Open PythoneerSamurai opened 4 months ago

PythoneerSamurai commented 4 months ago

I've tried to make a keras_ocr.pipeline.Pipeline() object both on my local machine and cloud notebook, and I'm getting the error mentioned in the title of this issue. I have tensorflow > 2.0.0, as mentioned on the GitHub page. How to fix this? Another point to be noted is that I opened a very old notebook from a youtuber, it was using tensorflow 2.6.4, and keras_ocr was working properly there. However, I cannot install that version of tensorflow as pip does not recognize it, probably because it is not compatible with newer versions of python.

vigneshwarvenkat commented 4 months ago

Had the same issue, but the fix specified on https://github.com/faustomorales/keras-ocr/issues/252 works for me.

tensorflow==2.13.0 keras==2.13.1 keras-ocr==0.9.3

PythoneerSamurai commented 4 months ago

Had the same issue, but the fix specified on #252 works for me.

tensorflow==2.13.0 keras==2.13.1 keras-ocr==0.9.

Thankyou, I installed your versions of tensorflow, keras, and keras-ocr. Now my code is running.

Deependrashukla commented 4 months ago

had the same issue and fixed it by installing this version in colab. !pip install tensorflow==2.15

smathieson commented 3 months ago

This is useful, but are there any plans for updating and supporting keras3?