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

Update testdata.py

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