Skip to content

Commit c323073

Browse files
Default params
Update the default parameters for the original implementation.
1 parent 374815d commit c323073

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

UNet - Biomedical_Segmentation.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,22 @@
8484
"# Input shape - (572, 572, 1), \n",
8585
"# filters 64, 128, 256, 512, 1024 at each convolutional block and \n",
8686
"# unpadded convolutions.\n",
87-
"unet = Unet(input_shape = (572, 572, 1), filters = [64, 128, 256, 512, 1024], padding = \"valid\")\n",
88-
"\n",
87+
"unet = Unet()"
88+
]
89+
},
90+
{
91+
"cell_type": "code",
92+
"execution_count": 3,
93+
"metadata": {},
94+
"outputs": [],
95+
"source": [
8996
"# call the build netowrk API to build the network.\n",
9097
"model = unet.Build_UNetwork()"
9198
]
9299
},
93100
{
94101
"cell_type": "code",
95-
"execution_count": 3,
102+
"execution_count": 4,
96103
"metadata": {},
97104
"outputs": [
98105
{
@@ -194,7 +201,7 @@
194201
},
195202
{
196203
"cell_type": "code",
197-
"execution_count": null,
204+
"execution_count": 5,
198205
"metadata": {
199206
"scrolled": false
200207
},

Unet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Unet():
2121
https://arxiv.org/pdf/1505.04597
2222
"""
2323

24-
def __init__(self, input_shape, filters, padding):
24+
def __init__(self, input_shape = (572, 572, 1), filters = [64, 128, 256, 512, 1024], padding = "valid"):
2525
"""
2626
2727
Initialize the Unet framework and the model parameters - input_shape,

0 commit comments

Comments
 (0)