khaclinh commited on
Commit
7ca0ae9
·
1 Parent(s): 13c9031

Update testdata.py

Browse files
Files changed (1) hide show
  1. testdata.py +3 -2
testdata.py CHANGED
@@ -129,8 +129,9 @@ 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
  sizes.append([img_h, img_w])
135
 
136
  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 = cv2.imread(i_file)
133
+ # img_h, img_w = img.shape[:2]
134
+ img_h, img_w = 100, 200
135
  sizes.append([img_h, img_w])
136
 
137
  annotation = defaultdict(list)