Update pidray-semantics.py
Browse files- pidray-semantics.py +0 -2
pidray-semantics.py
CHANGED
|
@@ -48,7 +48,6 @@ class pidraySemantics(datasets.GeneratorBasedBuilder):
|
|
| 48 |
]
|
| 49 |
|
| 50 |
def _generate_examples(self, images, label):
|
| 51 |
-
"""This function returns the examples in the raw (text) form."""
|
| 52 |
idx = 0
|
| 53 |
# iterate through images
|
| 54 |
|
|
@@ -57,6 +56,5 @@ class pidraySemantics(datasets.GeneratorBasedBuilder):
|
|
| 57 |
yield idx, {
|
| 58 |
"pixel_values": {"path": filepath, "bytes": image.read()},
|
| 59 |
"label": {"path": filepath2, "bytes": image2.read()},
|
| 60 |
-
#"label": {"path": label[idx]['path'], "bytes": label[idx]['bytes'].read()},
|
| 61 |
}
|
| 62 |
idx += 1
|
|
|
|
| 48 |
]
|
| 49 |
|
| 50 |
def _generate_examples(self, images, label):
|
|
|
|
| 51 |
idx = 0
|
| 52 |
# iterate through images
|
| 53 |
|
|
|
|
| 56 |
yield idx, {
|
| 57 |
"pixel_values": {"path": filepath, "bytes": image.read()},
|
| 58 |
"label": {"path": filepath2, "bytes": image2.read()},
|
|
|
|
| 59 |
}
|
| 60 |
idx += 1
|