Skip to content

Instantly share code, notes, and snippets.

@rafalpronko rafalpronko/data_loading Secret
Created Feb 11, 2019

Embed
What would you like to do?
# create the transformer for put the data to the tensor
transforms = transforms.Compose([
transforms.ToTensor()
])
# load the train data - if not exists download it
train_dataset_py = torchvision.datasets.FashionMNIST(root='/content/drive/My Drive/article/data/',
train=True,
transform=transforms,
download=True)
test_dataset_py = torchvision.datasets.FashionMNIST(root='/content/drive/My Drive/article/data/',
train=False,
transform=transforms,
download=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.