alexjc commited on
Commit
1cb7e24
1 Parent(s): 4e8e0da

Fix for PNG support at quarter resolution.

Browse files
Files changed (1) hide show
  1. td01_natural-ground-textures.py +1 -1
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":