Update testdata.py
Browse files- testdata.py +3 -2
testdata.py
CHANGED
|
@@ -108,7 +108,7 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
| 108 |
files.extend(list(Path(image_dir).glob(f'**/*.{file_type}')))
|
| 109 |
|
| 110 |
idx = 0
|
| 111 |
-
for
|
| 112 |
# img_relative_path = image_path.relative_to(image_dir)
|
| 113 |
#gt_pah = (Path(annotation_dir) / img_relative_path).with_suffix('.txt')
|
| 114 |
|
|
@@ -136,5 +136,6 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
| 136 |
objects.append({
|
| 137 |
'faces': [1, 2, 3, 4]
|
| 138 |
})
|
| 139 |
-
|
|
|
|
| 140 |
idx += 1
|
|
|
|
| 108 |
files.extend(list(Path(image_dir).glob(f'**/*.{file_type}')))
|
| 109 |
|
| 110 |
idx = 0
|
| 111 |
+
for i in range(0, 100): # in tqdm(files):
|
| 112 |
# img_relative_path = image_path.relative_to(image_dir)
|
| 113 |
#gt_pah = (Path(annotation_dir) / img_relative_path).with_suffix('.txt')
|
| 114 |
|
|
|
|
| 136 |
objects.append({
|
| 137 |
'faces': [1, 2, 3, 4]
|
| 138 |
})
|
| 139 |
+
image = "abcd"
|
| 140 |
+
yield idx, {"image": image, "objects": objects}
|
| 141 |
idx += 1
|