Update test.py
Browse files
test.py
CHANGED
|
@@ -118,11 +118,10 @@ class imgdataset(datasets.GeneratorBasedBuilder):
|
|
| 118 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
| 119 |
print("4")
|
| 120 |
with open(filepath, encoding="utf-8") as f:
|
| 121 |
-
|
| 122 |
-
for
|
| 123 |
print(row)
|
| 124 |
print(f'sadasd{key}')
|
| 125 |
-
data = csv.reader(row)
|
| 126 |
if self.config.name == "train":
|
| 127 |
yield key, {
|
| 128 |
"Class_name": row[0],
|
|
|
|
| 118 |
# The `key` is for legacy reasons (tfds) and is not important in itself, but must be unique for each example.
|
| 119 |
print("4")
|
| 120 |
with open(filepath, encoding="utf-8") as f:
|
| 121 |
+
data = csv.reader(f)
|
| 122 |
+
for row in data:
|
| 123 |
print(row)
|
| 124 |
print(f'sadasd{key}')
|
|
|
|
| 125 |
if self.config.name == "train":
|
| 126 |
yield key, {
|
| 127 |
"Class_name": row[0],
|