Skip to content

Commit

Permalink
use bilinear upsampling in the unet
Browse files Browse the repository at this point in the history
  • Loading branch information
afoix committed Aug 17, 2024
1 parent f384125 commit 76eaa2a
Show file tree
Hide file tree
Showing 2 changed files with 976 additions and 88 deletions.
6 changes: 3 additions & 3 deletions exercise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@
"history = {\"loss\": []}\n",
"\n",
"# Model:\n",
"unet_model = UNet(depth=3, in_channels=1, final_activation=nn.Sigmoid())\n",
"unet_model = UNet(depth=3, in_channels=1, upsample_mode='bilinear')\n",
"unet_model = unet_model.to(device)\n",
"\n",
"# Loss function:\n",
Expand Down Expand Up @@ -1627,7 +1627,7 @@
"history = {\"loss\": []}\n",
"\n",
"# Model:\n",
"unet_model = UNet(depth=3, in_channels=1, final_activation=nn.Sigmoid())\n",
"unet_model = UNet(depth=3, in_channels=1, upsample_mode='bilinear')\n",
"unet_model = unet_model.to(device)\n",
"\n",
"# Loss function:\n",
Expand Down Expand Up @@ -1712,7 +1712,7 @@
"history = {\"loss\": []}\n",
"\n",
"# Model:\n",
"unet_model = UNet(depth=3, in_channels=1, final_activation=nn.Sigmoid())\n",
"unet_model = UNet(depth=3, in_channels=1, upsample_mode='bilinear')\n",
"unet_model = unet_model.to(device)\n",
"\n",
"# Loss function:\n",
Expand Down
1,058 changes: 973 additions & 85 deletions solution.ipynb

Large diffs are not rendered by default.

0 comments on commit 76eaa2a

Please sign in to comment.