File size: 14,810 Bytes
5357119 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
{
"cells": [
{
"cell_type": "code",
"execution_count": 32,
"id": "1efa9df0-5f50-415c-b574-fae1236cb2b7",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Files already downloaded and verified\n"
]
}
],
"source": [
"from torch.utils.data import Dataset, DataLoader\n",
"from torchvision.datasets import MNIST, CIFAR10\n",
"from torchvision import datasets, transforms\n",
"\n",
"\n",
"dataset = CIFAR10(root='./data/', train=True, download=True, transform=\n",
"transforms.Compose([\n",
" transforms.RandomHorizontalFlip(),\n",
" transforms.RandomCrop(32, padding=4),\n",
" transforms.ToTensor(),\n",
" transforms.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.2010)),\n",
"]))\n",
"batch_size = 192 # 96\n",
"train_loader = DataLoader(dataset, batch_size=batch_size, shuffle=True)\n"
]
},
{
"cell_type": "code",
"execution_count": 36,
"id": "e9254b0b-0b70-4d87-b9eb-62a37212ba5a",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"torch.Size([3, 32, 32])\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAaEAAAGdCAYAAAC7EMwUAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAj90lEQVR4n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HhDhgzxKisrvcbGRtdtm5xv/yR5q1atitekw/G82H6my/H8/ve/H388vfbaa71vfvOb8QDyvMt7LPkoBwCAM73+OSEAQPoihAAAzhBCAABnCCEAgDOEEADAGUIIAOAMIQQAcIYQAgA4QwgBAJwhhAAAzhBCAABnCCEAgDP/H/zeMlwAFnOKAAAAAElFTkSuQmCC",
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"img = next(iter(train_loader))[0]\n",
"print(img[0].shape)\n",
"\n",
"\n",
"from matplotlib import pyplot as plt\n",
"plt.imshow(img[0].permute(1,2 , 0), interpolation='nearest')\n",
"plt.show()\n",
"\n",
"\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|