From 3ab82ad36bce6fa698a13a029a0694b75a5947b7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 6 Aug 2021 02:42:45 +0200 Subject: Fix VQVAE into en/decoder, bug in wandb artifact code uploading --- text_recognizer/networks/vqvae/norm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text_recognizer/networks/vqvae/norm.py') diff --git a/text_recognizer/networks/vqvae/norm.py b/text_recognizer/networks/vqvae/norm.py index df66efc..3e6963a 100644 --- a/text_recognizer/networks/vqvae/norm.py +++ b/text_recognizer/networks/vqvae/norm.py @@ -3,7 +3,7 @@ import attr from torch import nn, Tensor -@attr.s +@attr.s(eq=False) class Normalize(nn.Module): num_channels: int = attr.ib() norm: nn.GroupNorm = attr.ib(init=False) @@ -12,7 +12,7 @@ class Normalize(nn.Module): """Post init configuration.""" super().__init__() self.norm = nn.GroupNorm( - num_groups=32, num_channels=self.num_channels, eps=1.0e-6, affine=True + num_groups=self.num_channels, num_channels=self.num_channels, eps=1.0e-6, affine=True ) def forward(self, x: Tensor) -> Tensor: -- cgit v1.2.3-70-g09d2