Update WaterFlowCountersRecognition.py
Browse files
WaterFlowCountersRecognition.py
CHANGED
|
@@ -61,7 +61,7 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
|
|
| 61 |
def _info(self):
|
| 62 |
features = datasets.Features(
|
| 63 |
{
|
| 64 |
-
"
|
| 65 |
"image": datasets.Image(),
|
| 66 |
"width": datasets.Value('int32'),
|
| 67 |
"height": datasets.Value('int32'),
|
|
@@ -171,7 +171,7 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
|
|
| 171 |
|
| 172 |
|
| 173 |
yield idx, {
|
| 174 |
-
"
|
| 175 |
"image": {"path": filepath, "bytes": image_bytes},
|
| 176 |
"width": width,
|
| 177 |
"height": height,
|
|
|
|
| 61 |
def _info(self):
|
| 62 |
features = datasets.Features(
|
| 63 |
{
|
| 64 |
+
"filename": datasets.Value("string"),
|
| 65 |
"image": datasets.Image(),
|
| 66 |
"width": datasets.Value('int32'),
|
| 67 |
"height": datasets.Value('int32'),
|
|
|
|
| 171 |
|
| 172 |
|
| 173 |
yield idx, {
|
| 174 |
+
"filename": file,
|
| 175 |
"image": {"path": filepath, "bytes": image_bytes},
|
| 176 |
"width": width,
|
| 177 |
"height": height,
|