Registrations Closing Soon for DevOps Certification Training by CloudxLab | Registrations Closing in

  Enroll Now

Getting the Model and Pre-trained Weights

We need to include models and processing packages that are specific to that model.

INSTRUCTIONS
  • Import image from tensorflow.keras.preprocessing.

    from << your code comes here >> import << your code comes here >>
    
  • Import ResNet50 as myModel from tensorflow.keras.applications.resnet50.

    from tensorflow.keras.applications.resnet50 import << your code comes here >> as << your code comes here >>
    
  • Import preprocess_input, decode_predictions from tensorflow.keras.applications.resnet50.

    from tensorflow.keras.applications.resnet50 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")
    

No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...