code: def __init__(self, model_type):
      super().__init__()
      assert model_type in self.MODEL_TYPES_ISL
      model, _ = load_model(model_type)
      self.model = model
      self.model.train = disabled_train
  
file_path: lavis/lavis/common/annotator/midas/api.py
imports: import cv2
  import os
  import torch
  import torch.nn
  from torchvision.transforms import Compose
  from .midas.dpt_depth import DPTDepthModel
  from .midas.midas_net import MidasNet
  from .midas.midas_net_custom import MidasNet_small
  from .midas.transforms import Resize, NormalizeImage, PrepareForNet
  from annotator.util import annotator_ckpts_path
label_desc: Use image node_id 1 to create a new MiDaSInference object from inherited base classes: nn with example: obj = MiDaSInference(model_type)