Update testdata.py
Browse files- testdata.py +3 -11
testdata.py
CHANGED
|
@@ -101,20 +101,12 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
| 101 |
annotation_dir = os.path.join(annot_dir, "annotations", "fisheye")
|
| 102 |
files = []
|
| 103 |
|
| 104 |
-
for i_file in glob(os.path.join(image_dir, "*.png")):
|
| 105 |
-
pass
|
| 106 |
-
|
| 107 |
idx = 0
|
| 108 |
-
for
|
| 109 |
plates = []
|
| 110 |
faces = []
|
| 111 |
-
|
| 112 |
-
# gt_relative_file = os.path.relpath(gt_file, annotation_dir)
|
| 113 |
-
# img_relative_path = gt_relative_file.replace(".txt", ".png")
|
| 114 |
-
|
| 115 |
-
# img_path = os.path.join(image_dir, img_relative_path)
|
| 116 |
yield idx, {"image": i_file, "faces": faces, "plates": plates}
|
| 117 |
|
| 118 |
idx += 1
|
| 119 |
-
|
| 120 |
-
|
|
|
|
| 101 |
annotation_dir = os.path.join(annot_dir, "annotations", "fisheye")
|
| 102 |
files = []
|
| 103 |
|
|
|
|
|
|
|
|
|
|
| 104 |
idx = 0
|
| 105 |
+
for i_file in glob(os.path.join(image_dir, "*.png")):
|
| 106 |
plates = []
|
| 107 |
faces = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
yield idx, {"image": i_file, "faces": faces, "plates": plates}
|
| 109 |
|
| 110 |
idx += 1
|
| 111 |
+
|
| 112 |
+
|