summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/vqvae/norm.py
diff options
context:
space:
mode:
Diffstat (limited to 'text_recognizer/networks/vqvae/norm.py')
-rw-r--r--text_recognizer/networks/vqvae/norm.py4
1 files changed, 2 insertions, 2 deletions
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: