Skip to content

Instantly share code, notes, and snippets.

@rafalpronko
Created February 11, 2019 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafalpronko/09b2ce9c6ee24289d8f06c885e2a50a8 to your computer and use it in GitHub Desktop.
Save rafalpronko/09b2ce9c6ee24289d8f06c885e2a50a8 to your computer and use it in GitHub Desktop.
# 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