Spaces:
Runtime error
Runtime error
Update Time_TravelRephotography/model.py
Browse files
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 |
-
|
| 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,
|
| 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 |
|