feng2022 commited on
Commit
1ece658
1 Parent(s): 6a13378

Update Time_TravelRephotography/model.py

Browse files
Files changed (1) hide show
  1. Time_TravelRephotography/model.py +2 -2
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, pad=self.pad)
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, pad=self.pad)
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