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
Mention the path to load the image we want to classify using the model
.
img_path = '/cxldata/dlcourse/lion.jpg'
Resnet50 needs inputs of size (224, 224). So load the image using image.load_img
, pass the img_path
and target_size=(224, 224)
as the input arguments.
img = << your code comes here >>(img_path, target_size=(224, 224))
Now let us view the image we loaded. We shall convert the img
to numpy array and display it using plt.imshow
.
<< your code comes here >>(np.asarray(img))
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...