I am trying to run the cell in Colab but getting the following error
FileNotFoundError: [Errno 2] No such file or directory: ‘…images/chapter1_cat_example.jpg’.
I have gone through the some of the existing posts on this and could not fine a suitable answer. @muellerzr can you help…thanks
Hi,
after I upload picture I directly run
img = PILImage.create(uploader.data[0])
is_cat,_,probs = learn.predict(img)
print(f"Is this a cat?: {is_cat}.")
print(f"Probability it’s a cat: {probs[1].item():.6f}").
And it works!