Open bhdrozgn opened 3 years ago
Same here, did you solve this issue ?
filepath = './saved_model/model.h5'
# Load the model
new_model = load_model(filepath, compile = True)
X_val_path = DATASET_PATH + "X_val.txt"
X_val = load_X(X_val_path)
# Generate predictions for samples
predictions = new_model.predict(X_val)
print(predictions)
Error:
Input to reshape is a tensor with 1152 values, but the requested shape has 1179648
No, I couldn't solve it.
I met the same problem here. Have you resolve the problem ?
I imported this project to TF 2.0 and normalized X_train and X_test data before saving my model. Then i tried to do predictions on normalized X_val file. But i get this error for pred = model.predict(valX)
The code for normalizing data:
This is the model:
This is the main code:
And finally, how i try to predict: