daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. traindata = datasets.ImageFolder(data_dir + '/train', transforms.ToTensor())
  2. image_means = torch.stack([t.mean(1).mean(1) for t, c in traindata])
  3. image_means.mean(0)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top