code: def __init__(
      self,
      norm_radius,
      spatial_scale=1.0,
      cpu_mode=True,
      use_disks=False,
  ):
      super(DistMaps, self).__init__()
      self.spatial_scale = spatial_scale
      self.norm_radius = norm_radius
      self.cpu_mode = cpu_mode
      self.use_disks = use_disks
  
      if self.cpu_mode:
          from util.cython import get_dist_maps
  
          self._get_dist_maps = get_dist_maps
  
file_path: PaddleSeg/EISeg/eiseg/inference/predictor/ops.py
imports: import paddle
  import paddle.nn
  import numpy
label_desc: Use image node_id 1 to create a new DistMaps object from inherited base classes: nn with example: obj = DistMaps(norm_radius, spatial_scale, cpu_mode, use_disks)