How can I predicting on single image using fastai 1.0

I am confused about this problem, how can I do it ?
I can find the description about 0.7 version of fastai to implement this.

The document of fastai isn’t very friendly to novice

And where can I find the difference description about fastai 0.7 version api vs 1.0 version api?

1 Like

You can find an example in lesson2-coursev3 https://github.com/fastai/course-v3/blob/master/nbs/dl1/lesson2-download.ipynb .

img = open_image(path/'black'/'00000021.jpg')
pred_class,pred_idx,outputs = learn.predict(img)

If you have time, take a look in the coursev3. It is about fastai 1.0

3 Likes

Thanks for the reply!