From 7eef87c2c72412714b8ede9bba49196791f443b5 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 11 Sep 2021 15:44:51 +0200 Subject: Disable group norm in vqvae en/decoder --- text_recognizer/networks/vqvae/decoder.py | 2 +- text_recognizer/networks/vqvae/encoder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'text_recognizer') diff --git a/text_recognizer/networks/vqvae/decoder.py b/text_recognizer/networks/vqvae/decoder.py index fcbed57..1194573 100644 --- a/text_recognizer/networks/vqvae/decoder.py +++ b/text_recognizer/networks/vqvae/decoder.py @@ -37,7 +37,7 @@ class Decoder(nn.Module): in_channels=in_channels, out_channels=in_channels, dropout_rate=self.dropout_rate, - use_norm=True, + use_norm=False, ), ] diff --git a/text_recognizer/networks/vqvae/encoder.py b/text_recognizer/networks/vqvae/encoder.py index 4a5c976..06e6c18 100644 --- a/text_recognizer/networks/vqvae/encoder.py +++ b/text_recognizer/networks/vqvae/encoder.py @@ -63,7 +63,7 @@ class Encoder(nn.Module): in_channels=self.hidden_dim * self.channels_multipliers[-1], out_channels=self.hidden_dim * self.channels_multipliers[-1], dropout_rate=self.dropout_rate, - use_norm=True, + use_norm=False, ) ] -- cgit v1.2.3-70-g09d2