Update testdata.py
Browse files- testdata.py +3 -2
testdata.py
CHANGED
|
@@ -23,8 +23,8 @@ import re
|
|
| 23 |
from collections import defaultdict
|
| 24 |
import datasets
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
|
| 29 |
|
| 30 |
|
|
@@ -143,6 +143,7 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
| 143 |
x1, y1, x2, y2 = cx - w / 2, cy - h / 2, cx + w / 2, cy + h / 2
|
| 144 |
annotation[cls].append([x1, y1, x2, y2])
|
| 145 |
line = f.readline().strip()
|
|
|
|
| 146 |
|
| 147 |
for cls, bboxes in annotation.items():
|
| 148 |
for x1, y1, x2, y2 in bboxes:
|
|
|
|
| 23 |
from collections import defaultdict
|
| 24 |
import datasets
|
| 25 |
|
| 26 |
+
datasets.logging.set_verbosity_info()
|
| 27 |
+
|
| 28 |
|
| 29 |
|
| 30 |
|
|
|
|
| 143 |
x1, y1, x2, y2 = cx - w / 2, cy - h / 2, cx + w / 2, cy + h / 2
|
| 144 |
annotation[cls].append([x1, y1, x2, y2])
|
| 145 |
line = f.readline().strip()
|
| 146 |
+
datasets.logging.INFO(annotation)
|
| 147 |
|
| 148 |
for cls, bboxes in annotation.items():
|
| 149 |
for x1, y1, x2, y2 in bboxes:
|