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/resize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text_recognizer/networks/vqvae/resize.py') 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): -- cgit v1.2.3-70-g09d2