So it looks like image is just the string “image”. This is not going to work because I am guessing that is not the name of the images you have. My suggestion is to take a look at what your dataset is and make sure it gives out actual image as output. Because right now it seems that your dataset is giving the string “image” as one of the output.
Are you using a custom dataset?
If you just want to test if your code is working properly, you can always use one of the datasets 7 from torchvision and run it on the dataset to make sure your code is working.