I am following lesson 1 “is it a bird” exercise. I am able to get it to train. When I gave a new bird image, it was able to predict. Then, I gave a forest image. Even that it predicted as true. Below is the code in the cell:
is_bird,_,probs = learn.predict(PILImage.create(‘/kaggle/working/640px-Quiver-Tree-Forest-2015.JPG’))
print(f"This is a: {is_bird}.“)
print(f"Probability it’s a bird: {probs[0]:.4f}”)
Here is the response
This is a: working.
Probability it’s a bird: 1.0000
Attached is the image.forestjpg