Skip to content

Commit

Permalink
feat(up): generic upscale handling
Browse files Browse the repository at this point in the history
  • Loading branch information
hahnec committed Sep 4, 2023
1 parent 0b8a24d commit b1fd4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/unet/sloun_model_adapt.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, n_channels, n_classes, bilinear=True):
self.down3 = (Down(256, 512))
self.latent_conv = (SlounLatent(512, 512))
factor = 2 if bilinear else 1
self.up1 = (Up(512//2*3, 256 // factor, bilinear))
self.up1 = (Up(512//2*3, 256 // factor, bilinear)) if bilinear else (Up(512, 256 // factor, bilinear))
self.up2 = (Up(256, 128 // factor, bilinear))
self.up3 = (Up(128, 64, bilinear))
self.outc = (OutConv(64, n_classes))
Expand Down

0 comments on commit b1fd4dc

Please sign in to comment.