Fix for PNG support at quarter resolution.
Browse files
td01_natural-ground-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":
|