code: def __init__(
      self,
      scaling_config: Dict,
      num_idx: int,
      discretization_config: Dict,
      do_append_zero: bool = False,
      quantize_c_noise: bool = True,
      flip: bool = True,
  ):
      super().__init__(scaling_config)
      self.discretization: Discretization = instantiate_from_config(
          discretization_config
      )
      sigmas = self.discretization(
          num_idx, do_append_zero=do_append_zero, flip=flip
      )
      self.register_buffer("sigmas", sigmas)
      self.quantize_c_noise = quantize_c_noise
      self.num_idx = num_idx
  
file_path: generative-models/sgm/modules/diffusionmodules/denoiser.py
imports: from typing import Dict, Union
  import torch
  import torch.nn
  from ...util import append_dims, instantiate_from_config
  from .denoiser_scaling import DenoiserScaling
  from .discretizer import Discretization
label_desc: Use image node_id 1 to create a new DiscreteDenoiser object from inherited base classes: Denoiser with example: obj = DiscreteDenoiser(scaling_config, num_idx, discretization_config, do_append_zero, quantize_c_noise, flip)