Update WaterFlowCountersRecognition.py
Browse files
WaterFlowCountersRecognition.py
CHANGED
|
@@ -60,7 +60,7 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
|
|
| 60 |
def _info(self):
|
| 61 |
features = datasets.Features(
|
| 62 |
{
|
| 63 |
-
"
|
| 64 |
"image": datasets.Image(),
|
| 65 |
"regions": datasets.Sequence(
|
| 66 |
{
|
|
@@ -142,7 +142,7 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
|
|
| 142 |
|
| 143 |
|
| 144 |
yield idx, {
|
| 145 |
-
"index":
|
| 146 |
"image": {"path": filepath, "bytes": image_bytes},
|
| 147 |
"regions": {
|
| 148 |
"all_points_x": all_x,
|
|
|
|
| 60 |
def _info(self):
|
| 61 |
features = datasets.Features(
|
| 62 |
{
|
| 63 |
+
"filename": datasets.Value("string"),
|
| 64 |
"image": datasets.Image(),
|
| 65 |
"regions": datasets.Sequence(
|
| 66 |
{
|
|
|
|
| 142 |
|
| 143 |
|
| 144 |
yield idx, {
|
| 145 |
+
"index": el,
|
| 146 |
"image": {"path": filepath, "bytes": image_bytes},
|
| 147 |
"regions": {
|
| 148 |
"all_points_x": all_x,
|