Update testdata.py
Browse files- testdata.py +1 -1
testdata.py
CHANGED
|
@@ -105,7 +105,7 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
| 105 |
|
| 106 |
for img_file in glob(os.path.join(image_dir, "*.png")):
|
| 107 |
|
| 108 |
-
d = { image_dir:
|
| 109 |
gt_path = img_file
|
| 110 |
for i, j in d.items():
|
| 111 |
gt_path = gt_path.replace(i, j)
|
|
|
|
| 105 |
|
| 106 |
for img_file in glob(os.path.join(image_dir, "*.png")):
|
| 107 |
|
| 108 |
+
d = { image_dir: annotation_dir, "png": "txt"}
|
| 109 |
gt_path = img_file
|
| 110 |
for i, j in d.items():
|
| 111 |
gt_path = gt_path.replace(i, j)
|