fix
Browse files
super-resolution-games.py
CHANGED
@@ -105,6 +105,7 @@ _DATA_FILES_DOWNSCALE = {
|
|
105 |
|
106 |
_DATA_FILES = _DATA_FILES_DOWNSCALE
|
107 |
|
|
|
108 |
class SuperResolutionGamesConfig(datasets.BuilderConfig):
|
109 |
def __init__(self, data_files, features, **kwargs):
|
110 |
super().__init__(version=datasets.Version('0.0.0'), **kwargs)
|
@@ -156,13 +157,14 @@ class SuperResolutionGames(datasets.GeneratorBasedBuilder):
|
|
156 |
name=datasets.Split.VALIDATION,
|
157 |
gen_kwargs={
|
158 |
k: dl_manager.iter_archive(val_archives_downloaded[k]) \
|
159 |
-
|
160 |
}
|
161 |
)
|
162 |
]
|
163 |
return splits
|
164 |
|
165 |
def _generate_examples(self, r270p, r360p, r540p, r1080p):
|
|
|
166 |
for files in zip(r270p, r360p, r540p, r1080p):
|
167 |
r270p_i, r360p_i, r540p_i, r1080p_i = files
|
168 |
yield r270p_i, r360p_i, r540p_i, r1080p_i
|
|
|
105 |
|
106 |
_DATA_FILES = _DATA_FILES_DOWNSCALE
|
107 |
|
108 |
+
|
109 |
class SuperResolutionGamesConfig(datasets.BuilderConfig):
|
110 |
def __init__(self, data_files, features, **kwargs):
|
111 |
super().__init__(version=datasets.Version('0.0.0'), **kwargs)
|
|
|
157 |
name=datasets.Split.VALIDATION,
|
158 |
gen_kwargs={
|
159 |
k: dl_manager.iter_archive(val_archives_downloaded[k]) \
|
160 |
+
for k in val_archives_downloaded.keys()
|
161 |
}
|
162 |
)
|
163 |
]
|
164 |
return splits
|
165 |
|
166 |
def _generate_examples(self, r270p, r360p, r540p, r1080p):
|
167 |
+
print(r270p, r360p, r540p, r1080p)
|
168 |
for files in zip(r270p, r360p, r540p, r1080p):
|
169 |
r270p_i, r360p_i, r540p_i, r1080p_i = files
|
170 |
yield r270p_i, r360p_i, r540p_i, r1080p_i
|