From f34cf6570606eb4ad701d78302e859fec3ba6a6b Mon Sep 17 00:00:00 2001 From: Samer Attrah <70598009+Samir-atra@users.noreply.github.com> Date: Wed, 1 Mar 2023 15:13:40 +0300 Subject: [PATCH] Deleted some irrelevant comments --- scripts/pascal_voc_to_yolo.py | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/scripts/pascal_voc_to_yolo.py b/scripts/pascal_voc_to_yolo.py index f2c9f8f8..5d83f74f 100644 --- a/scripts/pascal_voc_to_yolo.py +++ b/scripts/pascal_voc_to_yolo.py @@ -51,7 +51,6 @@ def convert_annotation(input_ann_path): ) return ann_list - # output_ann_path.write(str(cls_id) + " " + " ".join([str(a) for a in bb]) + '\n') def main(dataset_dir: str): @@ -144,30 +143,6 @@ def main(dataset_dir: str): - - - - - - - -# for dir_path in dirs: -# full_dir_path = cwd + '/' + dir_path -# output_path = full_dir_path +'/yolo/' - -# if not os.path.exists(output_path): -# os.makedirs(output_path) - -# image_paths = getImagesInDir(full_dir_path) -# list_file = open(full_dir_path + '.txt', 'w') - -# for image_path in image_paths: -# list_file.write(image_path + '\n') -# convert_annotation(full_dir_path, output_path, image_path) -# list_file.close() - -# print("Finished processing: " + dir_path) - if __name__ == "__main__": parse = argparse.ArgumentParser( @@ -179,4 +154,4 @@ def main(dataset_dir: str): required=True, ) args = parse.parse_args() - main(args.dataset_dir) \ No newline at end of file + main(args.dataset_dir)