SIA86 commited on
Commit
304c135
·
1 Parent(s): 5827598

Update WaterFlowCountersRecognition.py

Browse files
Files changed (1) hide show
  1. WaterFlowCountersRecognition.py +2 -2
WaterFlowCountersRecognition.py CHANGED
@@ -136,10 +136,10 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
136
  all_x.append(region['shape_attributes']['all_points_x'])
137
  all_y.append(region['shape_attributes']['all_points_y'])
138
  for name in list(region['region_attributes']['name'].keys()):
139
- names.append(name_to_id(name))
140
  try:
141
  for rot in list(region['region_attributes']['rotated'].keys()):
142
- rotated.append(rotation_to_id(rot))
143
  except:
144
  rotated.append(int(region['region_attributes']['rotated']))
145
 
 
136
  all_x.append(region['shape_attributes']['all_points_x'])
137
  all_y.append(region['shape_attributes']['all_points_y'])
138
  for name in list(region['region_attributes']['name'].keys()):
139
+ names.append(name_to_id[name])
140
  try:
141
  for rot in list(region['region_attributes']['rotated'].keys()):
142
+ rotated.append(rotation_to_id[rot])
143
  except:
144
  rotated.append(int(region['region_attributes']['rotated']))
145