Update testdata.py
Browse files- testdata.py +1 -1
testdata.py
CHANGED
@@ -113,7 +113,7 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
113 |
gt_path = os.path.join(annotation_dir, gt_relative_path)
|
114 |
|
115 |
annotation = defaultdict(list)
|
116 |
-
with open(
|
117 |
line = f.readline().strip()
|
118 |
while line:
|
119 |
assert re.match(r"^\d( [\d\.]+){4,5}$", line), "Incorrect line: %s" % line
|
|
|
113 |
gt_path = os.path.join(annotation_dir, gt_relative_path)
|
114 |
|
115 |
annotation = defaultdict(list)
|
116 |
+
with open(gt_path, "r", encoding="utf-8") as f:
|
117 |
line = f.readline().strip()
|
118 |
while line:
|
119 |
assert re.match(r"^\d( [\d\.]+){4,5}$", line), "Incorrect line: %s" % line
|