HI ,I have trained my model on my dataset and saved as .pth file using pytorch. Now i want to pass a test image to model to classify whether is it type menigioma tumor or glioma.Please  guide what to pass ( from my nn module ,train or test details and parameters ) to test image to classify accucrately. I loaded the model but not sure what to do next
I have seen an example over here: [https://stackoverflow.com/questions/53844826/how-to-load-and-use-a-pretained-pytorch-inceptionv3-model-to-classify-an-image 37]
# load the model
import torch
model=torch.load("iNat_2018_InceptionV3.pth.tar",map_location='cpu')

# try to get it to classify an image
imsize = 256
loader = transforms.Compose([transforms.Scale(imsize), transforms.ToTensor()])

def image_loade[How to load and use a pretained PyTorch InceptionV3 model to classify an image](https://stackoverflow.com/questions/53844826/how-to-load-and-use-a-pretained-pytorch-inceptionv3-model-to-classify-an-image)r(image_name):
    """load image, returns cuda tensor"""
    image = Image.open(image_name)
    image = loader(image).float()
    image = Variable(image, requires_grad=True)
    image = image.unsqueeze(0)  
    return image.cpu()  #assumes that you're using CPU

image = image_loader("test-image.jpg")