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 .

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


Thanks for the reply!