joemaatouk commited on
Commit
eba50d2
·
1 Parent(s): 9776151

Update EZPass-Dataset.py

Browse files
Files changed (1) hide show
  1. EZPass-Dataset.py +1 -1
EZPass-Dataset.py CHANGED
@@ -89,7 +89,7 @@ class EZPassTargz(datasets.GeneratorBasedBuilder):
89
  for filepath, image in images:
90
  #extract the text from the filename
91
  yield idx,{
92
- "image":{"filepath": filepath,"image":image.read()},
93
  "ground_truth": descriptions[idx]
94
  }
95
  idx+=1
 
89
  for filepath, image in images:
90
  #extract the text from the filename
91
  yield idx,{
92
+ "image":{"path": filepath,"bytes":image.read()},
93
  "ground_truth": descriptions[idx]
94
  }
95
  idx+=1