Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update recognition.py #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RishitSingh10
Copy link

Dense layer doesn't take weight initializations as argument.

@roguh
Copy link

roguh commented Oct 27, 2024

For context, this is the output I get without this fix:

>>> pipeline = keras_ocr.pipeline.Pipeline()

Looking for /root/.keras-ocr/craft_mlt_25k.h5
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-6-6b85d751285a>](https://localhost:8080/#) in <cell line: 1>()
----> 1 pipeline = keras_ocr.pipeline.Pipeline(
...
ValueError: Unrecognized keyword arguments passed to Dense: {'weights': [array([[0., 0., 0., 0., 0., 0.], ...

The exception can be misleading since it prints out the weights array, but I truncated it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants