a4f9c269026f5c8ed38f552e07aab743947c26cc,data/image.py,Image,__init__,#Image#Any#,7
Before Change
else:
raise NotImplemented(f"Unknown dataset: {args.dataset}")
self.train = t.utils.data.DataLoader(
Dataset(root="./data", train=True, transform=transforms.Compose([
transforms.RandomHorizontalFlip(),
transforms.RandomCrop(32, 4),
transforms.ToTensor(),
normalize,
]), download=True),
batch_size=args.batch_size, shuffle=True,
num_workers=args.num_workers, pin_memory=True)
self.valid = t.utils.data.DataLoader(
Dataset(root="./data", train=False, transform=transforms.Compose([
transforms.ToTensor(),
After Change
Dataset = datasets.CIFAR10
mean = [0.49139968, 0.48215827, 0.44653124]
std = [0.24703233, 0.24348505, 0.26158768]
normalize = transforms.Normalize(mean, std)
transform = transforms.Compose([
transforms.RandomCrop(32, padding=4),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
normalize,
])
elif args.datset == "MNIST":
Dataset = datasets.MNIST
else:
raise NotImplemented(f"Unknown dataset: {args.dataset}")
self.train = t.utils.data.DataLoader(
Dataset(root="./data", train=True, transform=transform, download=True),
batch_size=args.batch_size, shuffle=True,
num_workers=args.num_workers, pin_memory=True)
self.valid = t.utils.data.DataLoader(
Dataset(root="./data", train=False, transform=transforms.Compose([
transforms.ToTensor(),
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: carpedm20/ENAS-pytorch
Commit Name: a4f9c269026f5c8ed38f552e07aab743947c26cc
Time: 2018-02-15
Author: carpedm20@gmail.com
File Name: data/image.py
Class Name: Image
Method Name: __init__
Project Name: HyperGAN/HyperGAN
Commit Name: 7c83acdf42df2a9bf4d4cfaf4af7d8e848d9f78f
Time: 2020-12-10
Author: mikkel@255bits.com
File Name: examples/classification.py
Class Name: InputLoader
Method Name: __init__
Project Name: inferno-pytorch/inferno
Commit Name: 1f2385d79dc9d1c042df2f1342a5239d55e63edd
Time: 2018-01-22
Author: steffen.wolf@iwr.uni-heidelberg.de
File Name: inferno/io/box/bsd500.py
Class Name:
Method Name: get_bsd500_loaders
Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 61228f3243eaee39cba31a9abd2afc6ead9612a8
Time: 2018-05-04
Author: eriklindernoren@gmail.com
File Name: implementations/ccgan/ccgan.py
Class Name:
Method Name: