Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pytorch_unet_resnet18_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@
"import simulation\n",
"\n",
"# Generate some random images\n",
"input_images, target_masks = simulation.generate_random_data(192, 192, count=3)\n",
"input_images, target_masks = simulation.generate_random_data(32, 32, count=3)\n",
"\n",
"print(\"input_images shape and range\", input_images.shape, input_images.min(), input_images.max())\n",
"print(\"target_masks shape and range\", target_masks.shape, target_masks.min(), target_masks.max())\n",
Expand Down Expand Up @@ -511,7 +511,7 @@
"\n",
"class SimDataset(Dataset):\n",
" def __init__(self, count, transform=None):\n",
" self.input_images, self.target_masks = simulation.generate_random_data(192, 192, count=count)\n",
" self.input_images, self.target_masks = simulation.generate_random_data(32, 32, count=count)\n",
" self.transform = transform\n",
"\n",
" def __len__(self):\n",
Expand Down Expand Up @@ -1645,4 +1645,4 @@
"outputs": []
}
]
}
}