class_docstr: Wrapper of a Detectron2 model. Input/output formats of this class follow
  MMDetection's convention, so a Detectron2 model can be trained and
  evaluated in MMDetection.
  
  Args:
      detector (:obj:`ConfigDict` or dict): The module config of
          Detectron2.
      bgr_to_rgb (bool): whether to convert image from BGR to RGB.
          Defaults to False.
      rgb_to_bgr (bool): whether to convert image from RGB to BGR.
          Defaults to False.
class_docstr_tok: ["Wrapper","of","a","Detectron2","model",".","Input\/output","formats","of","this","class","follow","MMDetection","'s","convention",",","so","a","Detectron2","model","can","be","trained","and","evaluated","in","MMDetection",".","Args",":","detector","(",":","obj",":","`","ConfigDict","`","or","dict",")",":","The","module","config","of","Detectron2",".","bgr_to_rgb","(","bool",")",":","whether","to","convert","image","from","BGR","to","RGB",".","Defaults","to","False",".","rgb_to_bgr","(","bool",")",":","whether","to","convert","image","from","RGB","to","BGR",".","Defaults","to","False","."]
docstr: Extract features from images.
  
  `extract_feat` will not be used in obj:``Detectron2Wrapper``.
docstr_tok: ["Extract","features","from","images",".","`","extract_feat","`","will","not","be","used","in","obj",":","``","Detectron2Wrapper","``","."]
code: def extract_feat(self, *args, **kwargs):
      """Extract features from images.
  
      `extract_feat` will not be used in obj:``Detectron2Wrapper``.
      """
      pass
  
imports: from typing import Union
  from mmengine.config import ConfigDict
  from mmengine.structures import InstanceData
  from torch import Tensor
  from mmdet.registry import MODELS
  from mmdet.structures import SampleList
  from mmdet.structures.bbox import BaseBoxes
  from mmdet.structures.mask import BitmapMasks, PolygonMasks
  from mmdet.utils import ConfigType
  from .base import BaseDetector
label_desc: Use image node_id 6 for calling the Detectron2Wrapper obj's underlying member method code with example usage: obj.extract_feat() without return types