Predict Label of Unknown test data

How to get the predicted label of unlabelled test images of our own saved in a folder from trained neural network in pytorch. Because ImageFolder function only works with categorised images according to their label. So my question is what is the way in pytorch to predict the labels of images which we don’t know from which category they belong? That is what actually the use of Neural networks i.e. prediction. Thanks in Advance

1 Like

it may help when you use the code from Transfer Learning tutorial. This tutorial show you how to construct an image recognition neural network and for further test.

you can use it to infer your unlabeled image data.