How to load CNN model in keras

+1 vote

Hi Guys,

I have downloaded one CNN model from google. Now I want to load this model to predict the output. How can I load CNN model in keras?

May 18, 2020 in Machine Learning by akhtar
• 38,180 points
587 views

1 answer to this question.

0 votes

Hi@akhtar,

You can load your pre-created model in keras. For that you have to import one module named load_model. Use the below given code.

from keras.models import load_model
model = load_model('name.h5')

Hope this will help.

answered May 18, 2020 by MD
• 95,140 points

Related Questions In Machine Learning

0 votes
1 answer

How to import the BatchNormalization function in Keras?

Hi@akhtar, The general use case is to use ...READ MORE

answered Jul 29, 2020 in Machine Learning by MD
• 95,140 points
145 views
0 votes
1 answer

How to save machine learning model?

Hi@akhtar, To save your Machine Learning model, you ...READ MORE

answered Apr 13, 2020 in Machine Learning by MD
• 95,140 points
243 views
0 votes
1 answer

How to import one Machine Learning model?

Hi@akhtar, To import one pre-created ML model, you ...READ MORE

answered Apr 13, 2020 in Machine Learning by MD
• 95,140 points
143 views
0 votes
1 answer

How to add one new column in an existing dataset?

Hi@akhtar, You can do this task using numpy ...READ MORE

answered Apr 17, 2020 in Machine Learning by MD
• 95,140 points
707 views
0 votes
1 answer

ImportError: `load_weights` requires h5py.

Hi@akhtar, You are trying to use pre-created weight of ...READ MORE

answered May 18, 2020 in Machine Learning by MD
• 95,140 points
709 views
0 votes
1 answer
0 votes
1 answer

What is h5 model in Keras?

Hi@akhtar, H5 is a file format to store ...READ MORE

answered Jul 14, 2020 in Machine Learning by MD
• 95,140 points
2,007 views
0 votes
3 answers

How to train a Keras model on multiple GPUs?

Hello there, With the latest commit and release ...READ MORE

answered Jul 16, 2020 in Machine Learning by Lily
• 260 points
570 views
0 votes
1 answer

How to save CNN model in keras?

Hi@akhtar, You can save your CNN model in keras. For ...READ MORE

answered May 19, 2020 in Machine Learning by MD
• 95,140 points
551 views
0 votes
1 answer

How to load a model from an HDF5 file in Keras?

Hi@akhtar, If you stored the complete model, not ...READ MORE

answered Jul 14, 2020 in Machine Learning by MD
• 95,140 points
1,623 views