Datasets:
frgfm
commited on
Commit
•
d66ea15
1
Parent(s):
44d0482
fix: Fixed preview
Browse files- imagenette.py +2 -1
imagenette.py
CHANGED
@@ -110,7 +110,8 @@ class OpenFire(datasets.GeneratorBasedBuilder):
|
|
110 |
)
|
111 |
|
112 |
def _split_generators(self, dl_manager):
|
113 |
-
|
|
|
114 |
return [
|
115 |
datasets.SplitGenerator(
|
116 |
name=datasets.Split.TRAIN,
|
|
|
110 |
)
|
111 |
|
112 |
def _split_generators(self, dl_manager):
|
113 |
+
_path = dl_manager.download_and_extract(self.config.data_url)
|
114 |
+
local_extracted_archive = os.path.join(_path, self.config.data_url.rpartition("/")[-1].split('.')[0])
|
115 |
return [
|
116 |
datasets.SplitGenerator(
|
117 |
name=datasets.Split.TRAIN,
|