summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-Yan Zhu <junyanz@users.noreply.github.com>2017-12-14 22:51:09 -0800
committerGitHub <noreply@github.com>2017-12-14 22:51:09 -0800
commit929454c133fb19c03264b00179dae25f458efd36 (patch)
treebe7978cf11a4de7c481c4462787ce9484375625b
parent73132d2ded0714946a9068b5cf818da2a43ac6d2 (diff)
parent765a32fc83ac8c477dc5a42f92128bd6de72e4b1 (diff)
Merge pull request #167 from guopzhao/master
Update networks.py
-rw-r--r--models/networks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/networks.py b/models/networks.py
index 568f8c9..da2f59c 100644
--- a/models/networks.py
+++ b/models/networks.py
@@ -77,7 +77,7 @@ def get_norm_layer(norm_type='instance'):
norm_layer = functools.partial(nn.BatchNorm2d, affine=True)
elif norm_type == 'instance':
norm_layer = functools.partial(nn.InstanceNorm2d, affine=False)
- elif layer_type == 'none':
+ elif norm_type == 'none':
norm_layer = None
else:
raise NotImplementedError('normalization layer [%s] is not found' % norm_type)