I would like to subtract the mean pixel from my loaded image:
import torch
from PIL import Image
import torchvision
import torchvision.transforms as transforms

image = Image.open(image_name)
loader = transforms.Compose([transforms.Scale(image_size), transforms.ToTensor()])  # resize and convert to tensor
image = loader(image)

I assume I can use: transforms.Normalize(mean, std) like this?
transforms.Normalize(mean = [103.939, 116.779, 123.68])
I am trying to replicate the image processing steps from this code: https://github.com/jcjohnson/neural-style/blob/master/neural_style.lua#L416-L437 49