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

predict using saved model #90

Open
linaemunsamy opened this issue Aug 9, 2020 · 0 comments
Open

predict using saved model #90

linaemunsamy opened this issue Aug 9, 2020 · 0 comments

Comments

@linaemunsamy
Copy link

Hi

I have added an additional save model (saves full state) onto the train_frcnn.py: model_all.save("my_model.h5").
I have changed the input image size to 1024x1025 for my own dataset.

I have the loaded the saved model and want to make predictions using loaded_model.predict().
Has anymore tried doing anything similar? because I am getting the following error:
ValueError: The model expects 2 input arrays, but only received one array. Found: array with shape (1024, 1024, 3)

I ran the following command after changing the input image to numpy.array:
loaded_model.predict(img_array)

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