class_docstr: Main evaluator class.
class_docstr_tok: ["Main","evaluator","class","."]
docstr: Clears the annotations collected in this object.
  
  It is important to call this method either at the end or at the beginning
  of a new evaluation round (or both). Otherwise, previous model inferences
  will skew the results due to residual annotations.
docstr_tok: ["Clears","the","annotations","collected","in","this","object",".","It","is","important","to","call","this","method","either","at","the","end","or","at","the","beginning","of","a","new","evaluation","round","(","or","both",")",".","Otherwise",",","previous","model","inferences","will","skew","the","results","due","to","residual","annotations","."]
code: def clear_annotations(self):
      """Clears the annotations collected in this object.
  
      It is important to call this method either at the end or at the beginning
      of a new evaluation round (or both). Otherwise, previous model inferences
      will skew the results due to residual annotations.
      """
      self.annotations.clear()
      self.annotated_img_ids.clear()
  
imports: import collections
  import contextlib
  import functools
  import io
  import json
  import os
  import tempfile
  from typing import Any, Dict, List, Optional, Set
  import zipfile
  from absl import logging
  import jax
  import numpy
  import PIL
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
  from tensorflow.io import gfile
label_desc: Use image node_id 3 for calling the DetectionEvaluator obj's underlying member method code with example usage: obj.clear_annotations() without return types