class_docstr: Multi-scale feature detector, based on code from KeyNet. Can be used with any response function.
  
  This is based on the original code from paper
  "Key.Net: Keypoint Detection by Handcrafted and Learned CNN Filters".
  See :cite:`KeyNet2019` for more details.
  
  Args:
      model: response function, such as KeyNet or BlobHessian
      num_features: Number of features to detect.
      conf: Dict with initialization parameters. Do not pass it, unless you know what you are doing`.
      ori_module: for local feature orientation estimation. Default: :class:`~kornia.feature.PassLAF`,
         which does nothing. See :class:`~kornia.feature.LAFOrienter` for details.
      aff_module: for local feature affine shape estimation. Default: :class:`~kornia.feature.PassLAF`,
          which does nothing. See :class:`~kornia.feature.LAFAffineShapeEstimator` for details.
class_docstr_tok: ["Multi-scale","feature","detector",",","based","on","code","from","KeyNet",".","Can","be","used","with","any","response","function",".","This","is","based","on","the","original","code","from","paper","''","Key.Net",":","Keypoint","Detection","by","Handcrafted","and","Learned","CNN","Filters","''",".","See",":","cite",":","`","KeyNet2019","`","for","more","details",".","Args",":","model",":","response","function",",","such","as","KeyNet","or","BlobHessian","num_features",":","Number","of","features","to","detect",".","conf",":","Dict","with","initialization","parameters",".","Do","not","pass","it",",","unless","you","know","what","you","are","doing","`",".","ori_module",":","for","local","feature","orientation","estimation",".","Default",":",":","class",":","`","~kornia.feature.PassLAF","`",",","which","does","nothing",".","See",":","class",":","`","~kornia.feature.LAFOrienter","`","for","details",".","aff_module",":","for","local","feature","affine","shape","estimation",".","Default",":",":","class",":","`","~kornia.feature.PassLAF","`",",","which","does","nothing",".","See",":","class",":","`","~kornia.feature.LAFAffineShapeEstimator","`","for","details","."]
docstr: It removes the borders of the image to avoid detections on the corners.
docstr_tok: ["It","removes","the","borders","of","the","image","to","avoid","detections","on","the","corners","."]
code: def remove_borders(
      self, score_map: Tensor, borders: int = 15
  ) -> Tensor:
      """It removes the borders of the image to avoid detections on the corners."""
      mask = torch.zeros_like(score_map)
      mask[:, :, borders:-borders, borders:-borders] = 1
      return mask * score_map
  
imports: import math
  from typing import List, Optional, Tuple
  import torch
  import torch.nn.functional
  from typing_extensions import TypedDict
  from kornia.core import Device, Module, Tensor, concatenate, eye, tensor, where, zeros
  from kornia.core.check import KORNIA_CHECK_SHAPE
  from kornia.geometry.subpix import ConvSoftArgmax3d, NonMaximaSuppression2d
  from kornia.geometry.transform import ScalePyramid, pyrdown, resize
  from .laf import laf_from_center_scale_ori, laf_is_inside_image
  from .orientation import PassLAF
  from .responses import BlobHessian
label_desc: Use image node_id 2 for calling the MultiResolutionDetector obj's underlying member method code with example usage: obj.remove_borders(score_map, borders) and returns: unknown