docstr: Detection model is initialized and set to self.model.
docstr_tok: ["Detection","model","is","initialized","and","set","to","self.model","."]
code: def load_model(self):
      """
      Detection model is initialized and set to self.model.
      """
      from super_gradients.training import models
  
      try:
          model = models.get(
              model_name=self.model_name,
              checkpoint_path=self.model_path,
              pretrained_weights=self.pretrained_weights,
              num_classes=self.num_classes,
          ).to(device=self.device)
          self.set_model(model)
      except Exception as e:
          raise TypeError(
              "Load model failed. Provided model weights and model_name might be mismatching. ",
              e,
          )
  
file_path: sahi/sahi/models/yolonas.py
imports: import logging
  from typing import Any, Dict, List, Optional
  import numpy
  from yaml import safe_load
  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.import_utils import check_requirements
label_desc: Use image node_id 3 for calling the YoloNasDetectionModel obj's underlying member method code with example usage: obj.load_model() without return types