From b2ddff8ce12b1e73e0ce8b817365b037044dcf49 Mon Sep 17 00:00:00 2001
From: Felix Kleinert <f.kleinert@fz-juelich.de>
Date: Tue, 3 Mar 2020 14:58:49 +0100
Subject: [PATCH] structural fix of inception model (#62)

---
 src/model_modules/inception_model.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/model_modules/inception_model.py b/src/model_modules/inception_model.py
index 11093df5..c3698853 100644
--- a/src/model_modules/inception_model.py
+++ b/src/model_modules/inception_model.py
@@ -63,7 +63,7 @@ class InceptionModelBase:
                                   padding='same',
                                   kernel_regularizer=regularizer,
                                   name=block_name)(input_x)
-            tower = self.act(tower, activation, **act_settings)
+            # tower = self.act(tower, activation, **act_settings)
         else:
             tower = layers.Conv2D(reduction_filter,
                                   (1, 1),
@@ -77,9 +77,9 @@ class InceptionModelBase:
                                   padding='same',
                                   kernel_regularizer=regularizer,
                                   name=block_name)(tower)
-            if batch_normalisation:
-                tower = self.batch_normalisation(tower, **bn_settings)
-            tower = self.act(tower, activation, **act_settings)
+        if batch_normalisation:
+            tower = self.batch_normalisation(tower, **bn_settings)
+        tower = self.act(tower, activation, **act_settings)
 
         return tower
 
-- 
GitLab