code: def __init__(
      self,
      model_path: Optional[str] = None,
      model: Optional[Any] = None,
      config_path: Optional[str] = None,
      device: Optional[str] = None,
      mask_threshold: float = 0.5,
      confidence_threshold: float = 0.3,
      category_mapping: Optional[Dict] = None,
      category_remapping: Optional[Dict] = None,
      load_at_init: bool = True,
      image_size: int = None,
      scope: str = "mmdet",
  ):
      if not IMPORT_MMDET_V3:
          raise ImportError(
              "Failed to import `DetInferencer`. Please confirm you have installed 'mmdet>=3.0.0'"
          )
  
      self.scope = scope
      self.image_size = image_size
  
      super().__init__(
          model_path,
          model,
          config_path,
          device,
          mask_threshold,
          confidence_threshold,
          category_mapping,
          category_remapping,
          load_at_init,
          image_size,
      )
  
file_path: sahi/sahi/models/mmdet.py
imports: import logging
  from typing import Any, Dict, List, Optional, Union
  import numpy
  from sahi.models.base import DetectionModel
  from sahi.prediction import ObjectPrediction
  from sahi.utils.compatibility import fix_full_shape_list, fix_shift_amount_list
  from sahi.utils.cv import get_bbox_from_bool_mask
  from sahi.utils.import_utils import check_requirements
label_desc: Use image node_id 1 to create a new MmdetDetectionModel object from inherited base classes: DetectionModel with example: obj = MmdetDetectionModel(model_path, model, config_path, device, mask_threshold, confidence_threshold, category_mapping, category_remapping, load_at_init, image_size, scope)