def METHOD_NAME(self, models_path, midas_model_filename):
    model_file = os.path.join(models_path, midas_model_filename)
    print(f"Loading MiDaS model from {midas_model_filename}...")
    self.midas_model = DPTDepthModel(
        path=model_file,
        backbone=self.backbone,
        non_negative=True,
    )
    self.midas_model.eval().to(self.device, memory_format=torch.channels_last if self.device == torch.device("cuda") else None)