Skip to content

Commit 762da4b

Browse files
StephanieLarocquenotoraptor
authored andcommitted
small changes
1 parent 2f92d33 commit 762da4b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

code/Unet_lasagne_recipes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ def build_UNet(n_input_channels=1, BATCH_SIZE=None, num_output_classes=2, pad='s
4040

4141
net['encode_1'] = batch_norm(ConvLayer(l, base_n_filters*16, 3, nonlinearity=nonlinearity, pad=pad, W=HeNormal(gain="relu")))
4242
net['encode_2'] = batch_norm(ConvLayer(net['encode_1'], base_n_filters*16, 3, nonlinearity=nonlinearity, pad=pad, W=HeNormal(gain="relu")))
43-
4443
# end-snippet-bottleneck
45-
# start-snippet-upsampling
4644

45+
# start-snippet-upsampling
4746
net['upscale1'] = batch_norm(Deconv2DLayer(net['encode_2'], base_n_filters*16, 2, 2, crop="valid", nonlinearity=nonlinearity, W=HeNormal(gain="relu")))
4847
net['concat1'] = ConcatLayer([net['upscale1'], net['contr_4_2']], cropping=(None, None, "center", "center"))
4948
net['expand_1_1'] = batch_norm(ConvLayer(net['concat1'], base_n_filters*8, 3, nonlinearity=nonlinearity, pad=pad, W=HeNormal(gain="relu")))

code/fcn_2D_segm/train_fcn8.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ def train(dataset, learn_step=0.005,
331331

332332

333333
def main():
334-
parser = argparse.ArgumentParser(description='Unet model training')
334+
parser = argparse.ArgumentParser(description='FCN8 model training')
335335
parser.add_argument('-dataset',
336-
default='camvid',
336+
default='polyps',
337337
help='Dataset.')
338338
parser.add_argument('-learning_rate',
339339
default=0.0001,

0 commit comments

Comments
 (0)