@@ -137,6 +137,12 @@ def annotations_to_upload(self):
137137 self ._annotations_to_upload = annotations_to_upload
138138 return self ._annotations_to_upload
139139
140+ @property
141+ def missing_annotations (self ):
142+ if not self ._missing_annotations :
143+ self ._missing_annotations = []
144+ return self ._missing_annotations
145+
140146 def get_annotation_upload_data (
141147 self , image_ids : List [int ]
142148 ) -> UploadAnnotationAuthData :
@@ -223,7 +229,10 @@ def _log_report(self):
223229 logger .warning (template .format ("', '" .join (values )))
224230 if self .reporter .custom_messages .get ("invalid_jsons" ):
225231 logger .warning (
226- f"Couldn't validate { len (self .reporter .custom_messages ['invalid_jsons' ])} /{ len (self ._annotations_to_upload + self ._missing_annotations )} annotations from { self ._folder_path } ."
232+ f"Couldn't validate { len (self .reporter .custom_messages ['invalid_jsons' ])} /"
233+ f"{ len (self .annotations_to_upload + self .missing_annotations )} annotations from { self ._folder_path } . "
234+ f"Use the validate_annotations function to discover the possible reason(s) for "
235+ f"which an annotation is invalid."
227236 )
228237
229238 def execute (self ):
@@ -281,7 +290,7 @@ def execute(self):
281290 self ._response .data = (
282291 uploaded_annotations ,
283292 failed_annotations ,
284- [annotation .path for annotation in self ._missing_annotations ],
293+ [annotation .path for annotation in self .missing_annotations ],
285294 )
286295 return self ._response
287296
0 commit comments