Update alphaXv4_pre_0.py
Browse files- alphaXv4_pre_0.py +1 -4
alphaXv4_pre_0.py
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 1 |
import datasets
|
| 2 |
|
| 3 |
_TAR_FILES=[
|
| 4 |
-
"
|
| 5 |
]
|
| 6 |
|
| 7 |
class ZipDataset(datasets.GeneratorBasedBuilder):
|
| 8 |
|
| 9 |
def _info(self):
|
| 10 |
-
print("running _info")
|
| 11 |
return datasets.DatasetInfo(
|
| 12 |
description="TMP description",
|
| 13 |
homepage="google it",
|
|
@@ -16,7 +15,6 @@ class ZipDataset(datasets.GeneratorBasedBuilder):
|
|
| 16 |
)
|
| 17 |
|
| 18 |
def _split_generators(self, dl_manager):
|
| 19 |
-
print("running _split")
|
| 20 |
archive_path = dl_manager.download(_TAR_FILES[0])
|
| 21 |
return [
|
| 22 |
datasets.SplitGenerator(
|
|
@@ -28,7 +26,6 @@ class ZipDataset(datasets.GeneratorBasedBuilder):
|
|
| 28 |
]
|
| 29 |
|
| 30 |
def _generate_examples(self, images):
|
| 31 |
-
print("running _gen")
|
| 32 |
"""Generate images and labels for splits."""
|
| 33 |
for file_path, file_obj in images:
|
| 34 |
yield file_path, {
|
|
|
|
| 1 |
import datasets
|
| 2 |
|
| 3 |
_TAR_FILES=[
|
| 4 |
+
"file0.zip"
|
| 5 |
]
|
| 6 |
|
| 7 |
class ZipDataset(datasets.GeneratorBasedBuilder):
|
| 8 |
|
| 9 |
def _info(self):
|
|
|
|
| 10 |
return datasets.DatasetInfo(
|
| 11 |
description="TMP description",
|
| 12 |
homepage="google it",
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
def _split_generators(self, dl_manager):
|
|
|
|
| 18 |
archive_path = dl_manager.download(_TAR_FILES[0])
|
| 19 |
return [
|
| 20 |
datasets.SplitGenerator(
|
|
|
|
| 26 |
]
|
| 27 |
|
| 28 |
def _generate_examples(self, images):
|
|
|
|
| 29 |
"""Generate images and labels for splits."""
|
| 30 |
for file_path, file_obj in images:
|
| 31 |
yield file_path, {
|