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

Update WaterFlowCountersRecognition.py

Browse files
Files changed (1) hide show
  1. WaterFlowCountersRecognition.py +2 -1
WaterFlowCountersRecognition.py CHANGED
@@ -141,7 +141,8 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
141
  rotated = [int(region['region_attributes']['rotated'])]
142
 
143
 
144
- yield idx, {
 
145
  "image": {"path": filepath, "bytes": image_bytes},
146
  "regions": {
147
  "all_points_x": all_x,
 
141
  rotated = [int(region['region_attributes']['rotated'])]
142
 
143
 
144
+ yield idx, {
145
+ "index": idx,
146
  "image": {"path": filepath, "bytes": image_bytes},
147
  "regions": {
148
  "all_points_x": all_x,