Update test.py
Browse files
test.py
CHANGED
|
@@ -61,6 +61,7 @@ class imgdataset(datasets.GeneratorBasedBuilder):
|
|
| 61 |
"""This function returns the examples in the raw (text) form."""
|
| 62 |
# urls = _URLS[self.config.name]
|
| 63 |
# data_dir = dl_manager.download_and_extract(urls)
|
|
|
|
| 64 |
return [
|
| 65 |
datasets.SplitGenerator(
|
| 66 |
name=datasets.Split.TRAIN,
|
|
@@ -73,7 +74,7 @@ class imgdataset(datasets.GeneratorBasedBuilder):
|
|
| 73 |
|
| 74 |
|
| 75 |
]
|
| 76 |
-
def _download_image(self
|
| 77 |
print("3")
|
| 78 |
if self.config.name == "train":
|
| 79 |
train = open("/content/drive/MyDrive/train_dataset.csv", "r")
|
|
|
|
| 61 |
"""This function returns the examples in the raw (text) form."""
|
| 62 |
# urls = _URLS[self.config.name]
|
| 63 |
# data_dir = dl_manager.download_and_extract(urls)
|
| 64 |
+
_download_image(self)
|
| 65 |
return [
|
| 66 |
datasets.SplitGenerator(
|
| 67 |
name=datasets.Split.TRAIN,
|
|
|
|
| 74 |
|
| 75 |
|
| 76 |
]
|
| 77 |
+
def _download_image(self):
|
| 78 |
print("3")
|
| 79 |
if self.config.name == "train":
|
| 80 |
train = open("/content/drive/MyDrive/train_dataset.csv", "r")
|