Remove seperable=True for box_blur

- not supported by older kornia versions, and probably no actual speed up at typical tile sizes
This commit is contained in:
Acly
2024-06-12 09:51:03 +02:00
parent 2f39365248
commit 6e7b2445db
+1 -1
View File
@@ -85,7 +85,7 @@ class TileLayout:
mask = torch.zeros((1, 1, size[0], size[1]), dtype=torch.float)
mask[:, :, s[0] : e[0], s[1] : e[1]] = 1.0
if blend and self.blending > 0:
mask = box_blur(mask, (self.blending, self.blending), separable=True)
mask = box_blur(mask, (self.blending, self.blending))
return mask.squeeze(0)
def merge(self, image: Tensor, index: int, tile: Tensor):