How do I load multiple images using only their file name and path?

I’ve been given a list of file paths for a ton of images and need to load them, then have AlexNet return the lc7 feature vector of these images. They are almost all from different folders. I don’t know how to really approach this so any help would be great.

the easies way is to create a new Dataset (inherit from torch.utils.data.Dataset), and implement __getitem__(self, index)
it makes your life much easier.