keras-ocr
keras-ocr copied to clipboard
Shape incompatible when try modify build_params
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?