From 0f81b03a76a4f9e81ae873af72d1016a148c53a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E9=B9=AD=E5=85=88=E7=94=9F?= <766529835@qq.com> Date: Tue, 7 Feb 2023 18:04:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81hrsc=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hrsc_annotation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrsc_annotation.py b/hrsc_annotation.py index 3e13663..7702397 100644 --- a/hrsc_annotation.py +++ b/hrsc_annotation.py @@ -122,7 +122,7 @@ if __name__ == "__main__": image_ids = open(os.path.join(VOCdevkit_path, 'VOC%s/ImageSets/Main/%s.txt'%(year, image_set)), encoding='utf-8').read().strip().split() list_file = open('%s_%s.txt'%(year, image_set), 'w', encoding='utf-8') for image_id in image_ids: - list_file.write('%s/VOC%s/JPEGImages/%s.jpg'%(os.path.abspath(VOCdevkit_path), year, image_id)) + list_file.write('%s/VOC%s/JPEGImages/%s.bmp'%(os.path.abspath(VOCdevkit_path), year, image_id)) convert_annotation(year, image_id, list_file) list_file.write('\n') -- GitLab