Commit
·
c857601
1
Parent(s):
51712f3
Update EZPass-Dataset.py
Browse files- EZPass-Dataset.py +2 -1
EZPass-Dataset.py
CHANGED
|
@@ -89,7 +89,8 @@ class EZPassTargz(datasets.GeneratorBasedBuilder):
|
|
| 89 |
for filepath, image in images:
|
| 90 |
#extract the text from the filename
|
| 91 |
yield idx,{
|
| 92 |
-
"image":{"path": filepath,"bytes":image.read()},
|
| 93 |
"text": descriptions[idx]
|
|
|
|
|
|
|
| 94 |
}
|
| 95 |
idx+=1
|
|
|
|
| 89 |
for filepath, image in images:
|
| 90 |
#extract the text from the filename
|
| 91 |
yield idx,{
|
|
|
|
| 92 |
"text": descriptions[idx]
|
| 93 |
+
"image":{"path": filepath,"bytes":image.read()}
|
| 94 |
+
|
| 95 |
}
|
| 96 |
idx+=1
|