How to load trained vision model and predict from a folder of images?

I have made my folder structured like imagenet structure, following

data = ImageDataBunch.from_folder(PATH, ds_tfms=tfms, size=299)

but when I output the content of data, it shows Test: None

here is my folder structures

plane
-valid/
–plane1/
–plane70/
-train
–plane1/
–plane70/
-test
–plane1.jpg
–plane[xx.].jpg

I would like to see what label will the model predict the test data

I’ve shared a google colab here to give my code example.

https://colab.research.google.com/drive/1Mw_mCbc0DZ3U3DYzNoM3YOqeiIX20wu0

1 Like