Update WaterFlowCountersRecognition.py
Browse files
WaterFlowCountersRecognition.py
CHANGED
|
@@ -162,8 +162,8 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
|
|
| 162 |
for name in list(region['region_attributes']['name'].keys()):
|
| 163 |
names.append(name_to_id[name])
|
| 164 |
|
| 165 |
-
|
| 166 |
-
|
| 167 |
'''
|
| 168 |
try:
|
| 169 |
for rot in list(region['region_attributes']['rotated'].keys()):
|
|
|
|
| 162 |
for name in list(region['region_attributes']['name'].keys()):
|
| 163 |
names.append(name_to_id[name])
|
| 164 |
|
| 165 |
+
if len(names) > 3:
|
| 166 |
+
names = names[:-3]
|
| 167 |
'''
|
| 168 |
try:
|
| 169 |
for rot in list(region['region_attributes']['rotated'].keys()):
|