khaclinh commited on
Commit
e172951
·
1 Parent(s): cc9734d

Update testdata.py

Browse files
Files changed (1) hide show
  1. 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 cv2
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