I have a trained model that I want to use it to classify images. These images, since unclassified, obviously do not follow the format required by Imageloader/Dataset. One hack is to simulate the nested structure required and move all images to a single subfolder, but this doesn’t work for large datasets. Others suggest a custom dataset 1 but I’m unclear how exact to override the Dataset class with my own __getitem__ method to achieve this.
Since this is such a standard thing (in production, for testing, etc.) I’m surprised there is no straightforward way, or I’m likely just not finding it.
Any pointers appreciated. Thanks.