You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there is an issue with loading image to predict in 01_intro and the same issue in Is it a bird? - but probably with any other image notebook I would encounter the same issue.
When I try to run the code, I get an error related to Image.open() part of the code - from what I understood, since I create an image in the first line in the following code, it cannot be "opened" inside .predict() method.
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}")
I have made no changes to the code, I have installed the latest fastai, I run all the cells in the notebook, one after the other.
Hi, there is an issue with loading image to predict in
01_intro
and the same issue inIs it a bird?
- but probably with any other image notebook I would encounter the same issue.When I try to run the code, I get an error related to Image.open() part of the code - from what I understood, since I create an image in the first line in the following code, it cannot be "opened" inside
.predict()
method.I have made no changes to the code, I have installed the latest fastai, I run all the cells in the notebook, one after the other.
Here is the screenshot of what happened:
And here is the whole error:
The text was updated successfully, but these errors were encountered: