Update ctscandataset.py
Browse files- ctscandataset.py +1 -1
ctscandataset.py
CHANGED
|
@@ -57,7 +57,7 @@ class ImageSet(datasets.GeneratorBasedBuilder):
|
|
| 57 |
idx=0
|
| 58 |
for filepath,image in images:
|
| 59 |
yield idx,{
|
| 60 |
-
"image":{"
|
| 61 |
"text":descriptions[idx]
|
| 62 |
}
|
| 63 |
idx+=1
|
|
|
|
| 57 |
idx=0
|
| 58 |
for filepath,image in images:
|
| 59 |
yield idx,{
|
| 60 |
+
"image":{"path":filepath,"bytes":image.read()},
|
| 61 |
"text":descriptions[idx]
|
| 62 |
}
|
| 63 |
idx+=1
|