Error while prediction using fastai

So I was trying to predict the results for my test set using the code: = (src.add_test_folder('test1-images')
              .transform(tfms, size=224)
preds, extra = learn.get_preds(ds_type=DatasetType.Test)

and I got an error shown in the picture.

Can someone tell me what is wrong


Can you please show how you created src?

sure sir, here’s the screenshot

1 Like

I was facing same issue with fastai v1.0.24. I upgrade to v1.0.27 and the issue is fixed now.

then i should upgrade the fastai library in a flash