Instead of doing the for loop and train_loader why don’t you just pass the input directly into the model. like this
input = train_set(image)
input = input.unsqueeze(0)
model.eval()
output = model(input)