Update WaterFlowCountersRecognition.py
Browse files
WaterFlowCountersRecognition.py
CHANGED
@@ -116,13 +116,13 @@ class WaterFlowCounter(datasets.GeneratorBasedBuilder):
|
|
116 |
|
117 |
#print(annotations['_via_image_id_list'][0:5])
|
118 |
|
|
|
119 |
for file in os.listdir(folder_dir):
|
120 |
filepath = os.path.join(folder_dir, file)
|
121 |
#print(filepath)
|
122 |
with open(filepath, "rb") as f:
|
123 |
image_bytes = f.read()
|
124 |
#print(image_bytes)
|
125 |
-
idx = 0
|
126 |
all_x = []
|
127 |
all_y = []
|
128 |
names = []
|
|
|
116 |
|
117 |
#print(annotations['_via_image_id_list'][0:5])
|
118 |
|
119 |
+
idx = 0
|
120 |
for file in os.listdir(folder_dir):
|
121 |
filepath = os.path.join(folder_dir, file)
|
122 |
#print(filepath)
|
123 |
with open(filepath, "rb") as f:
|
124 |
image_bytes = f.read()
|
125 |
#print(image_bytes)
|
|
|
126 |
all_x = []
|
127 |
all_y = []
|
128 |
names = []
|