Skip to content

Commit

Permalink
feat: ✨ make the UNet in solution a bit more sensible
Browse files Browse the repository at this point in the history
  • Loading branch information
neptunes5thmoon committed Aug 23, 2024
1 parent 9fc747e commit 702d8e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,14 +1191,14 @@ def launch_tensorboard(log_dir):

# %% tags=["solution"]
model = UNet(
depth=4, in_channels=1
depth=3, in_channels=1, upsample_mode="bilinear", fmap_inc_factor=3, final_activation=torch.nn.Sigmoid()
) # SOLUTION 8.1: Declare your U-Net here and name it below
model_name = "my_fav_unet" # This name will be used in the tensorboard logs
logger = SummaryWriter(f"unet_runs/{model_name}")

# %% tags=[]
# use adam optimizer
optimizer = torch.optim.Adam(model.parameters())
optimizer = torch.optim.Adam(model.parameters(), lr=1e-4)

# train for $5$ epochs
# TASK 8.2: Run this cell and examine outputs in Tensorboard above!
Expand Down

0 comments on commit 702d8e5

Please sign in to comment.