diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-08-04 22:15:36 +0200 | 
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-08-04 22:15:36 +0200 | 
| commit | 1bccf71cf4eec335001b50a8fbc0c991d0e6d13a (patch) | |
| tree | dd58219f94836a857dfbe794585d6f68ee28dbdc /text_recognizer/networks/vqvae/decoder.py | |
| parent | efe850821b88306481ab5aa2a5f79a2581e4458c (diff) | |
Add conv attention, up and downsampling to vqvae module
Diffstat (limited to 'text_recognizer/networks/vqvae/decoder.py')
| -rw-r--r-- | text_recognizer/networks/vqvae/decoder.py | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/text_recognizer/networks/vqvae/decoder.py b/text_recognizer/networks/vqvae/decoder.py index 3f59f0d..fcf768b 100644 --- a/text_recognizer/networks/vqvae/decoder.py +++ b/text_recognizer/networks/vqvae/decoder.py @@ -19,11 +19,9 @@ class Decoder(nn.Module):      activation: str = attr.ib()      decoder: nn.Sequential = attr.ib(init=False) -    def __attrs_pre_init__(self) -> None: -        super().__init__() -      def __attrs_post_init__(self) -> None:          """Post init configuration.""" +        super().__init__()          self.decoder = self._build_decompression_block()      def _build_decompression_block(self,) -> nn.Sequential:  |