@@ -106,7 +106,7 @@ def create_annotation_file(root, lang_code):
106106 target_captions = _get_lines (download_path )
107107
108108 number_of_missing_images = 0
109- valid_images , valid_annotations , valid_indicies = [], [], []
109+ valid_images , valid_annotations , valid_indices = [], [], []
110110 for i , (img , txt ) in enumerate (zip (target_images , target_captions )):
111111 image_path = os .path .join (images_dir , img )
112112 if not os .path .exists (image_path ):
@@ -116,7 +116,7 @@ def create_annotation_file(root, lang_code):
116116
117117 valid_images .append (image_path )
118118 valid_annotations .append (txt )
119- valid_indicies .append (i )
119+ valid_indices .append (i )
120120
121121 if number_of_missing_images > 0 :
122122 print (f"*** WARNING *** missing { number_of_missing_images } files." )
@@ -130,7 +130,7 @@ def create_annotation_file(root, lang_code):
130130 {
131131 "image_paths" : valid_images ,
132132 "annotations" : valid_annotations ,
133- "indicies " : valid_indicies ,
133+ "indices " : valid_indices ,
134134 },
135135 fp ,
136136 ensure_ascii = False ,
0 commit comments