I trained a CNN model with Input_shape(256,256,4)
in Keras. But I want to change the input size to be large as (512,512,4)
in order to reduce the test time when testing a large image.
I manually change the input shape in .json file, and use
model = model_from_json(json file)
, and then use
model=load_weights(weights file)
I got the error:
ValueError: Error when checking : expected input_9 to have shape (None, 512, 512, 4) but got array with shape (1, 256, 256, 4)
I used two different types of weights file, one saved by Modelcheckpoint()
, one saved by model.save_weights()
. But the error also raised.
Somebody could help me ? Thanks in advance.