Fix for PNG@1k mode when resizing.
Browse files
td02_urban-surface-textures.py
CHANGED
@@ -93,7 +93,7 @@ class NaturalGroundTextures(datasets.GeneratorBasedBuilder):
|
|
93 |
|
94 |
# PNG files only available at quarter resolution.
|
95 |
if self.config.name[:3] == "PNG":
|
96 |
-
sz = (sz*4, sz*4)
|
97 |
|
98 |
# Resize the images as specified by the user.
|
99 |
if self.config.name[-2:] == "1K":
|
|
|
93 |
|
94 |
# PNG files only available at quarter resolution.
|
95 |
if self.config.name[:3] == "PNG":
|
96 |
+
sz = (sz[0]*4, sz[1]*4)
|
97 |
|
98 |
# Resize the images as specified by the user.
|
99 |
if self.config.name[-2:] == "1K":
|