Update test.py
Browse files
test.py
CHANGED
|
@@ -80,7 +80,7 @@ class imgdataset(datasets.GeneratorBasedBuilder):
|
|
| 80 |
},
|
| 81 |
),
|
| 82 |
]
|
| 83 |
-
def _download_image(self):
|
| 84 |
print("3")
|
| 85 |
if self.config.name == "train":
|
| 86 |
train = open("/content/drive/MyDrive/train_dataset.csv", "r")
|
|
@@ -134,5 +134,4 @@ class imgdataset(datasets.GeneratorBasedBuilder):
|
|
| 134 |
"file_name": row[1],
|
| 135 |
"file_id": row[2]
|
| 136 |
}
|
| 137 |
-
key +=1
|
| 138 |
-
_download_image(self.config.name)
|
|
|
|
| 80 |
},
|
| 81 |
),
|
| 82 |
]
|
| 83 |
+
def _download_image(self, filepath, split):
|
| 84 |
print("3")
|
| 85 |
if self.config.name == "train":
|
| 86 |
train = open("/content/drive/MyDrive/train_dataset.csv", "r")
|
|
|
|
| 134 |
"file_name": row[1],
|
| 135 |
"file_id": row[2]
|
| 136 |
}
|
| 137 |
+
key +=1
|
|
|