Skip to content

Shape incompatible when try modify build_params #257

@lukaskris

Description

@lukaskris

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions