Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
We need to include models and processing packages that are specific to that model.
Import image from tensorflow.keras.preprocessing.
from << your code comes here >> import << your code comes here >>
Import InceptionV3 as myModel from tensorflow.keras.applications.inception_v3.
from tensorflow.keras.applications.inception_v3 import << your code comes here >> as <<your code comes here >>
Import preprocess_input, decode_predictions from tensorflow.keras.applications.inception_v3.
from tensorflow.keras.applications.inception_v3 import << your code comes here >>
Now get the model model and include the weights of "imagenet" data classification task. We will be using this trained network to predict the class of our desired image.
model = myModel(weights="imagenet")
Note- If you face Unable to open file error while loading the model, refer to Input/Output Error(Error no. 5).
            Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...