Spaces:
Runtime error
Runtime error
Update Time_TravelRephotography/model.py
Browse files
Time_TravelRephotography/model.py
CHANGED
@@ -47,7 +47,7 @@ class Upsample(nn.Module):
|
|
47 |
self.pad = (pad0, pad1)
|
48 |
|
49 |
def forward(self, input):
|
50 |
-
out = upfirdn2d(input, self.kernel, up=self.factor, down=1,
|
51 |
|
52 |
return out
|
53 |
|
@@ -68,7 +68,7 @@ class Downsample(nn.Module):
|
|
68 |
self.pad = (pad0, pad1)
|
69 |
|
70 |
def forward(self, input):
|
71 |
-
out = upfirdn2d(input, self.kernel, up=1, down=self.factor,
|
72 |
|
73 |
return out
|
74 |
|
|
|
47 |
self.pad = (pad0, pad1)
|
48 |
|
49 |
def forward(self, input):
|
50 |
+
out = upfirdn2d(input, self.kernel, up=self.factor, down=1, padding=[self.pad[0], self.pad[1], self.pad[0], self.pad[1]])
|
51 |
|
52 |
return out
|
53 |
|
|
|
68 |
self.pad = (pad0, pad1)
|
69 |
|
70 |
def forward(self, input):
|
71 |
+
out = upfirdn2d(input, self.kernel, up=1, down=self.factor, padding=[self.pad[0], self.pad[1], self.pad[0], self.pad[1]])
|
72 |
|
73 |
return out
|
74 |
|