Update testdata.py
Browse files- 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)
|