class_docstr: Collect data from the loader relevant to the specific task.
  
  This is usually the last stage of the data loader pipeline. Typically keys
  is set to some subset of "img", "proposals", "gt_bboxes",
  "gt_bboxes_ignore", "gt_labels", and/or "gt_masks".
  
  The "img_meta" item is always populated.  The contents of the "img_meta"
  dictionary depends on "meta_keys". By default this includes:
  
      - "img_shape": shape of the image input to the network as a tuple             (h, w, c).  Note that images may be zero padded on the             bottom/right if the batch tensor is larger than this shape.
  
      - "scale_factor": a float indicating the preprocessing scale
  
      - "flip": a boolean indicating if image flip transform was used
  
      - "filename": path to the image file
  
      - "ori_shape": original shape of the image as a tuple (h, w, c)
  
      - "pad_shape": image shape after padding
  
      - "img_norm_cfg": a dict of normalization information:
  
          - mean - per channel mean subtraction
          - std - per channel std divisor
          - to_rgb - bool indicating if bgr was converted to rgb
  
  Args:
      keys (Sequence[str]): Keys of results to be collected in ``data``.
      meta_keys (Sequence[str], optional): Meta keys to be converted to
          ``mmcv.DataContainer`` and collected in ``data[img_metas]``.
          Default: ``('filename', 'ori_filename', 'ori_shape', 'img_shape',
          'pad_shape', 'scale_factor', 'flip', 'flip_direction',
          'img_norm_cfg')``
class_docstr_tok: ["Collect","data","from","the","loader","relevant","to","the","specific","task",".","This","is","usually","the","last","stage","of","the","data","loader","pipeline",".","Typically","keys","is","set","to","some","subset","of","``","img","''",",","``","proposals","''",",","``","gt_bboxes","''",",","''","gt_bboxes_ignore","''",",","``","gt_labels","''",",","and\/or","``","gt_masks","''",".","The","``","img_meta","''","item","is","always","populated",".","The","contents","of","the","``","img_meta","''","dictionary","depends","on","``","meta_keys","''",".","By","default","this","includes",":","-","``","img_shape","''",":","shape","of","the","image","input","to","the","network","as","a","tuple","(","h",",","w",",","c",")",".","Note","that","images","may","be","zero","padded","on","the","bottom\/right","if","the","batch","tensor","is","larger","than","this","shape",".","-","``","scale_factor","''",":","a","float","indicating","the","preprocessing","scale","-","``","flip","''",":","a","boolean","indicating","if","image","flip","transform","was","used","-","``","filename","''",":","path","to","the","image","file","-","``","ori_shape","''",":","original","shape","of","the","image","as","a","tuple","(","h",",","w",",","c",")","-","``","pad_shape","''",":","image","shape","after","padding","-","``","img_norm_cfg","''",":","a","dict","of","normalization","information",":","-","mean","-","per","channel","mean","subtraction","-","std","-","per","channel","std","divisor","-","to_rgb","-","bool","indicating","if","bgr","was","converted","to","rgb","Args",":","keys","(","Sequence","[","str","]",")",":","Keys","of","results","to","be","collected","in","``","data","``",".","meta_keys","(","Sequence","[","str","]",",","optional",")",":","Meta","keys","to","be","converted","to","``","mmcv.DataContainer","``","and","collected","in","``","data","[","img_metas","]","``",".","Default",":","``","(","'filename","'",",","'ori_filename","'",",","'ori_shape","'",",","'img_shape","'",",","'pad_shape","'",",","'scale_factor","'",",","'flip","'",",","'flip_direction","'",",","'img_norm_cfg","'",")","``"]
docstr: Call function to collect keys in results. The keys in ``meta_keys``
  will be converted to :obj:mmcv.DataContainer.
  
  Args:
      results (dict): Result dict contains the data to collect.
  
  Returns:
      dict: The result dict contains the following keys
  
          - keys in``self.keys``
          - ``img_metas``
docstr_tok: ["Call","function","to","collect","keys","in","results",".","The","keys","in","``","meta_keys","``","will","be","converted","to",":","obj",":","mmcv.DataContainer",".","Args",":","results","(","dict",")",":","Result","dict","contains","the","data","to","collect",".","Returns",":","dict",":","The","result","dict","contains","the","following","keys","-","keys","in","``","self.keys","``","-","``","img_metas","``"]
code: def __call__(self, results):
      """Call function to collect keys in results. The keys in ``meta_keys``
      will be converted to :obj:mmcv.DataContainer.
  
      Args:
          results (dict): Result dict contains the data to collect.
  
      Returns:
          dict: The result dict contains the following keys
  
              - keys in``self.keys``
              - ``img_metas``
      """
  
      data = {}
      img_meta = {}
      for key in self.meta_keys:
          img_meta[key] = results[key]
      data["img_metas"] = DC(img_meta, cpu_only=True)
      for key in self.keys:
          data[key] = results[key]
      return data
  
imports: from collections.abc import Sequence
  import mmcv
  import numpy
  import torch
  from mmcv.parallel import DataContainer
  from ..builder import PIPELINES
label_desc: Use image node_id 2 for calling the Collect obj's underlying member method code with example usage: obj.__call__(results) and returns: data