Update testdata.py
Browse files- testdata.py +2 -1
testdata.py
CHANGED
|
@@ -22,7 +22,7 @@ from typing import List
|
|
| 22 |
import re
|
| 23 |
from collections import defaultdict
|
| 24 |
import datasets
|
| 25 |
-
import
|
| 26 |
|
| 27 |
|
| 28 |
_HOMEPAGE = "http://shuoyang1213.me/WIDERFACE/"
|
|
@@ -129,6 +129,7 @@ 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 |
# img = cv2.imread(i_file)
|
| 133 |
# img_h, img_w = img.shape[:2]
|
| 134 |
img_h, img_w = 100, 200
|
|
|
|
| 22 |
import re
|
| 23 |
from collections import defaultdict
|
| 24 |
import datasets
|
| 25 |
+
from PIL import Image
|
| 26 |
|
| 27 |
|
| 28 |
_HOMEPAGE = "http://shuoyang1213.me/WIDERFACE/"
|
|
|
|
| 129 |
gt_relative_path = img_relative_file.replace(".png", ".txt")
|
| 130 |
|
| 131 |
gt_path = os.path.join(annotation_dir, gt_relative_path)
|
| 132 |
+
# input_image = Image.open( i_file )
|
| 133 |
# img = cv2.imread(i_file)
|
| 134 |
# img_h, img_w = img.shape[:2]
|
| 135 |
img_h, img_w = 100, 200
|