Spaces:
Sleeping
Sleeping
Update videoretalking/third_part/GPEN/face_model/op/upfirdn2d.py
Browse files
videoretalking/third_part/GPEN/face_model/op/upfirdn2d.py
CHANGED
@@ -147,12 +147,12 @@ class UpFirDn2d(Function):
|
|
147 |
|
148 |
|
149 |
def upfirdn2d(input, kernel, up=1, down=1, pad=(0, 0), device='cpu'):
|
150 |
-
if platform.system() == 'Linux' and torch.cuda.is_available() and device != 'cpu':
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
else:
|
155 |
-
|
156 |
|
157 |
return out
|
158 |
|
|
|
147 |
|
148 |
|
149 |
def upfirdn2d(input, kernel, up=1, down=1, pad=(0, 0), device='cpu'):
|
150 |
+
# if platform.system() == 'Linux' and torch.cuda.is_available() and device != 'cpu':
|
151 |
+
# out = UpFirDn2d.apply(
|
152 |
+
# input, kernel, (up, up), (down, down), (pad[0], pad[1], pad[0], pad[1])
|
153 |
+
# )
|
154 |
+
# else:
|
155 |
+
out = upfirdn2d_native(input, kernel, up, up, down, down, pad[0], pad[1], pad[0], pad[1])
|
156 |
|
157 |
return out
|
158 |
|