Skip to content

Instantly share code, notes, and snippets.

@johnolafenwa
Created April 27, 2018 04:30
Show Gist options
  • Save johnolafenwa/f8438c4abf27baf38cdd9a2f4aee0ca2 to your computer and use it in GitHub Desktop.
Save johnolafenwa/f8438c4abf27baf38cdd9a2f4aee0ca2 to your computer and use it in GitHub Desktop.
# Import needed packages
import torch
import torch.nn as nn
from torchvision.transforms import transforms
from torch.autograd import Variable
from torchvision.models import squeezenet1_1
import requests
import shutil
from io import open
import os
from PIL import Image
import json
model = squeezenet1_1(pretrained=True)
model.eval()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment