Please help me…

  
    
    
    Pretrained Densenet Problem 
  
  
    Please some one help me. 
I have written the following code. 
import torch 
import torchvision.models as models 
import numpy as np 
import matplotlib.pyplot as plt 
import torchvision.transforms as transforms 
import cv2 
image=cv2.imread(‘Dog.jpg’) 
image is numpy array
cv2.imshow(‘Display’,image);cv2.waitKey(10000);cv2.destroyAllWindows() 
image1 =  transforms.ToTensor()(image) 
image1 is Tensor
image2=transforms.ToPILImage()(image1) 
image2 is PIL image
image3=transforms.Resize((224,224))(im…