khaclinh commited on
Commit
03b8bd0
·
1 Parent(s): 1487b98

Update testdata.py

Browse files
Files changed (1) hide show
  1. 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 image_path 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,5 +136,6 @@ class TestData(datasets.GeneratorBasedBuilder):
136
  objects.append({
137
  'faces': [1, 2, 3, 4]
138
  })
139
- yield idx, {"image": str(image_path), "objects": objects}
 
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