feng2022 commited on
Commit
597fe5c
·
1 Parent(s): 7b5488e

Update Time_TravelRephotography/model.py

Browse files
Files changed (1) hide show
  1. Time_TravelRephotography/model.py +2 -2
Time_TravelRephotography/model.py CHANGED
@@ -9,7 +9,7 @@ from torch import nn
9
  from torch.nn import functional as F
10
  from torch.autograd import Function
11
 
12
- #from op import FusedLeakyReLU, fused_leaky_relu#, upfirdn2d
13
  from torch_utils.ops.bias_act import bias_act,bias_act_relu
14
  from torch_utils.ops.upfirdn2d import upfirdn2d
15
 
@@ -89,7 +89,7 @@ class Blur(nn.Module):
89
  self.pad = pad
90
 
91
  def forward(self, input):
92
- out = upfirdn2d(input, self.kernel, pad=self.pad)
93
 
94
  return out
95
 
 
9
  from torch.nn import functional as F
10
  from torch.autograd import Function
11
 
12
+ from op.upfirdn2d import
13
  from torch_utils.ops.bias_act import bias_act,bias_act_relu
14
  from torch_utils.ops.upfirdn2d import upfirdn2d
15
 
 
89
  self.pad = pad
90
 
91
  def forward(self, input):
92
+ out = upfirdn2d(input, self.kernel, padding=[self.pad[0], self.pad[1], self.pad[0], self.pad[1]])
93
 
94
  return out
95