Update testdata.py
Browse files107 unmodified lines10810911011111211311421 unmodified lines136137138139140107 unmodified linesfiles.extend(list(Path(image_dir).glob(f'**/*.{file_type}')))idx = 0for image_path in tqdm(files):# img_relative_path = image_path.relative_to(image_dir)#gt_pah = (Path(annotation_dir) / img_relative_path).with_suffix('.txt')21 unmodified linesobjects.append({'faces': [1, 2, 3, 4]})yield idx, {"image": str(image_path), "objects": objects}idx += 1107 unmodified lines10810911011111211311421 unmodified lines136137138139140141107 unmodified linesfiles.extend(list(Path(image_dir).glob(f'**/*.{file_type}')))idx = 0for i in range(0, 100): # in tqdm(files):# img_relative_path = image_path.relative_to(image_dir)#gt_pah = (Path(annotation_dir) / img_relative_path).with_suffix('.txt')21 unmodified linesobjects.append({'faces': [1, 2, 3, 4]})image = "abcd"yield idx, {"image": image, "objects": objects}idx += 1
testdata.py+3-2