title: How can I load and use a PyTorch (.pth.tar) model
body: <p>I am not very familiar with Torch, and I primarily use Tensorflow. I, however, need to use a retrained inception model that was retrained in Torch. Due to the large amount of computing resources required to retrain an inception model for my particular application, I would like to use the model that was already retrained.</p>
  <p>This model is saved as a <code>.pth.tar</code> file.</p>
  <p>I would like to be able to first load this model. So far, I have been able to figure out that I must use the following:</p>
  <pre><code>model = torch.load('iNat_2018_InceptionV3.pth.tar', map_location='cpu')
  </code></pre>
  <p>This seems to work, because <code>print(model)</code> prints out a large set of numbers and other values, which I presume are the values for the weights an biases.</p>
  <p>After this, I need to be able to classify an image with it. I haven't been able to figure this out. How must I format the image? Should the image be converted into an array? After this, how must I pass the input data to the network?</p>