code: def __init__(
      self,
      model,
      schedule="linear",
      device=torch.device("cuda"),
      **kwargs,
  ):
      super().__init__()
      self.model = model
      self.ddpm_num_timesteps = model.num_timesteps
      self.schedule = schedule
      self.device = device
  
file_path: StableDiffusion/ldm/models/diffusion/plms.py
imports: import torch
  import numpy
  from tqdm import tqdm
  from functools import partial
  from ldm.modules.diffusionmodules.util import make_ddim_sampling_parameters, make_ddim_timesteps, noise_like
  from ldm.models.diffusion.sampling_util import norm_thresholding
label_desc: Use image node_id 1 to create a new PLMSSampler object from inherited base classes: object with example: obj = PLMSSampler(model, schedule, device)