Skip to content

Commit

Permalink
lesson1-UNet Model
Browse files Browse the repository at this point in the history
lesson1-UNet Model
  • Loading branch information
Jack-Cherish authored Dec 5, 2019
1 parent 2610e68 commit 6bcbe3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Pytorch-Seg/lesson-1/unet_parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ class DoubleConv(nn.Module):
def __init__(self, in_channels, out_channels):
super().__init__()
self.double_conv = nn.Sequential(
nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=1),
nn.Conv2d(in_channels, out_channels, kernel_size=3, padding=0),
nn.BatchNorm2d(out_channels),
nn.ReLU(inplace=True),
nn.Conv2d(out_channels, out_channels, kernel_size=3, padding=1),
nn.Conv2d(out_channels, out_channels, kernel_size=3, padding=0),
nn.BatchNorm2d(out_channels),
nn.ReLU(inplace=True)
)
Expand Down Expand Up @@ -73,4 +73,4 @@ def __init__(self, in_channels, out_channels):
self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=1)

def forward(self, x):
return self.conv(x)
return self.conv(x)

0 comments on commit 6bcbe3b

Please sign in to comment.