Skip to content

Commit

Permalink
Add missing property
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyballentine committed Jul 13, 2024
1 parent ed3230a commit e954fa2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def __init__(
out_ch: int = 3

self.dysample = dysample
self.upscaling_factor = upscaling_factor

if not self.training:
dropout = 0
Expand Down Expand Up @@ -157,6 +158,6 @@ def __init__(

def forward(self, x: torch.Tensor) -> torch.Tensor:
x = self.feats(x) + self.repeat_op(x)
if not self.dysample or (self.dysample and self.upscale != 1):
if not self.dysample or (self.dysample and self.upscaling_factor != 1):
x = self.to_img(x)
return x

0 comments on commit e954fa2

Please sign in to comment.