ighlight-ipython3 notranslate"><div class="highlight"><pre><span></span>for i in range(4):
    img_path = &#39;./data/img%d.JPG&#39;%i
    img = Image.open(img_path)

    pred, prob = predict(img_path, resnet50_model)
    print(&#39;{} - Predicted: {}, Probablility: {}&#39;.format(img_path, pred, prob))

    plt.subplot(2,2,i+1)
    plt.imshow(img);
    plt.axis(&#39;off&#39;);
    plt.title(pred[1])
</pre></div>
</div>
</div>
<div class="nboutput docutils container">
<div class="prompt empty docutils conta