Don't unpack tuple within index operation (not supported by older Python)

This commit is contained in:
Acly
2024-06-07 17:25:52 +02:00
parent 71bff50b0f
commit c27b662fd8
+1 -1
View File
@@ -93,7 +93,7 @@ class TileLayout:
rect = self.rect(coord)
mask = self.mask(coord, blend=True)
mask = mask.reshape(*mask.shape, 1).repeat(1, 1, 1, image.shape[-1])
image[*rect] = (1 - mask) * image[*rect] + mask * tile
image[rect] = (1 - mask) * image[rect] + mask * tile
class ExtractImageTile: