Update WaterFlowCountersRecognition.py
Browse files
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
|
| 140 |
try:
|
| 141 |
for rot in list(region['region_attributes']['rotated'].keys()):
|
| 142 |
-
rotated.append(rotation_to_id
|
| 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 |
|