alexjc commited on
Commit
e9f1990
1 Parent(s): 3c9d4f3

Fix for PNG@1k mode when resizing.

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