HOME/Articles/

pil example imports (snippet)

Article Outline

Python pil example 'imports'

Modules used in program:

  • import requests
  • import torch.optim as optim
  • import torch
  • import time
  • import numpy as np
  • import matplotlib.pyplot as plt
  • import matplotlib

python imports

Python pil example: imports

from PIL import Image
from io import BytesIO
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import time

import torch
import torch.optim as optim
import requests
from torchvision import transforms, models