minnnnn commited on
Commit
5e734f6
·
1 Parent(s): e6a88db

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +2 -3
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
- print("5")
122
- for key, row in enumerate(f):
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],