diff options
Diffstat (limited to 'text_recognizer/networks/vqvae/resize.py')
-rw-r--r-- | text_recognizer/networks/vqvae/resize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/networks/vqvae/resize.py b/text_recognizer/networks/vqvae/resize.py index 769d089..8d67d02 100644 --- a/text_recognizer/networks/vqvae/resize.py +++ b/text_recognizer/networks/vqvae/resize.py @@ -8,7 +8,7 @@ class Upsample(nn.Module): def forward(self, x: Tensor) -> Tensor: """Applies upsampling.""" - return F.interpolate(x, scale_factor=2, mode="nearest") + return F.interpolate(x, scale_factor=2.0, mode="nearest") class Downsample(nn.Module): |