SIA86 commited on
Commit
8cb5f6a
·
1 Parent(s): a0d5731

Update WaterFlowCountersRecognition.py

Browse files
Files changed (1) hide show
  1. WaterFlowCountersRecognition.py +2 -2
WaterFlowCountersRecognition.py CHANGED
@@ -60,7 +60,7 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
60
  def _info(self):
61
  features = datasets.Features(
62
  {
63
- "index": datasets.Value("int32"),
64
  "image": datasets.Image(),
65
  "regions": datasets.Sequence(
66
  {
@@ -142,7 +142,7 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
142
 
143
 
144
  yield idx, {
145
- "index": idx,
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,