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

Shape incompatible when try modify build_params #257

Open
lukaskris opened this issue Aug 11, 2024 · 0 comments
Open

Shape incompatible when try modify build_params #257

lukaskris opened this issue Aug 11, 2024 · 0 comments

Comments

@lukaskris
Copy link

I got error

conv_1/kernel:0': Shape mismatch.The variable shape (3, 3, 3, 64), and the assigned value shape (64, 1, 3, 3) are incompatible

I just try to modify input shape for RGB color only

alphabet = string.digits + string.ascii_lowercase + '.' recognizer = keras_ocr.recognition.Recognizer(alphabet=alphabet, build_params={ "height": 31, "width": 200, "color": True, "filters": (64, 128, 256, 256, 512, 512, 512), "rnn_units": (128, 128), "dropout": 0.25, "rnn_steps_to_discard": 2, "pool_size": 2, "stn": True, }) recognizer.compile() print(recognizer.model.input_shape)

any one can help?

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

No branches or pull requests

1 participant