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


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.

1 Like