Spaces:
Runtime error
Runtime error
Commit
·
9272dbc
1
Parent(s):
6678a14
Update UNet.py
Browse files
UNet.py
CHANGED
@@ -14,7 +14,6 @@ class Block(Module):
|
|
14 |
def __init__(self, inChannels, outChannels):
|
15 |
super().__init__()
|
16 |
# store the convolution and RELU layers
|
17 |
-
self.height, self.width = 256, 256
|
18 |
self.conv1 = Conv2d(inChannels, outChannels, 3)
|
19 |
self.relu = ReLU()
|
20 |
self.conv2 = Conv2d(outChannels, outChannels, 3)
|
@@ -73,7 +72,7 @@ class Decoder(Module):
|
|
73 |
|
74 |
class UNet(Module):
|
75 |
def __init__(self, encChannels=(3, 64, 128, 256, 512, 1024), decChannels=(1024, 512, 256, 128, 64),
|
76 |
-
nbClasses=1, retainDim=True, outSize=(
|
77 |
super().__init__()
|
78 |
# initialize the encoder and decoder
|
79 |
self.encoder = Encoder(encChannels)
|
|
|
14 |
def __init__(self, inChannels, outChannels):
|
15 |
super().__init__()
|
16 |
# store the convolution and RELU layers
|
|
|
17 |
self.conv1 = Conv2d(inChannels, outChannels, 3)
|
18 |
self.relu = ReLU()
|
19 |
self.conv2 = Conv2d(outChannels, outChannels, 3)
|
|
|
72 |
|
73 |
class UNet(Module):
|
74 |
def __init__(self, encChannels=(3, 64, 128, 256, 512, 1024), decChannels=(1024, 512, 256, 128, 64),
|
75 |
+
nbClasses=1, retainDim=True, outSize=(256, 256)):
|
76 |
super().__init__()
|
77 |
# initialize the encoder and decoder
|
78 |
self.encoder = Encoder(encChannels)
|