Update testdata.py
Browse files- testdata.py +2 -4
testdata.py
CHANGED
|
@@ -129,10 +129,8 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
| 129 |
gt_relative_path = img_relative_file.replace(".png", ".txt")
|
| 130 |
|
| 131 |
gt_path = os.path.join(annotation_dir, gt_relative_path)
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
# img_h, img_w = img.shape[:2]
|
| 135 |
-
img_h, img_w = 100, 200
|
| 136 |
# sizes.append([img_h, img_w])
|
| 137 |
|
| 138 |
annotation = defaultdict(list)
|
|
|
|
| 129 |
gt_relative_path = img_relative_file.replace(".png", ".txt")
|
| 130 |
|
| 131 |
gt_path = os.path.join(annotation_dir, gt_relative_path)
|
| 132 |
+
img = Image.open( i_file )
|
| 133 |
+
img_h, img_w = img.size
|
|
|
|
|
|
|
| 134 |
# sizes.append([img_h, img_w])
|
| 135 |
|
| 136 |
annotation = defaultdict(list)
|