def dataset_selector(data): if data == 'mnist': return dataset.MNIST_loader(args) elif data == 'svhn': return dataset.SVHN_loader(img_size=args.img_size) elif data == 'cifar10': return dataset.Cifar10_loader(args)
def dataset_selector(data): if data == 'mnist': return dataset.MNIST_loader(img_size=args.img_size) elif data == 'svhn': return dataset.SVHN_loader(img_size=32) elif data == "usps": return dataset.usps_loader(img_size=args.img_size) elif data == "mnistm": return dataset.MNIST_M_loader(img_size=args.img_size)
def dataset_selector(data): if data == 'mnist': return dataset.MNIST_loader(img_size=args.img_size) elif data == 'svhn': return dataset.SVHN_loader(img_size=32) elif data == "usps": return dataset.usps_loader(img_size=args.img_size) elif data == "mnistm": return dataset.MNIST_M_loader(img_size=args.img_size) elif data == "cifar10": return dataset.cifar10_loader(args) elif data == "CelebA": return dataset.CelebA_loader(image_size=args.img_size, batch_size=args.batch_size)