class_docstr: A sampler for text-to-image generation.
  :param root_dir: directory for model checkpoints.
  :param sampling_type: ["default", "fast"]
class_docstr_tok: ["A","sampler","for","text-to-image","generation",".",":","param","root_dir",":","directory","for","model","checkpoints",".",":","param","sampling_type",":","[","``","default","''",",","``","fast","''","]"]
code: def __init__(
      self,
      root_dir: str,
      sampling_type: str = "default",
  ):
      super().__init__(root_dir, sampling_type)
  
file_path: StableDiffusion/ldm/modules/karlo/kakao/sampler.py
imports: from typing import Iterator
  import torch
  import torchvision.transforms.functional
  from torchvision.transforms import InterpolationMode
  from .template import BaseSampler, CKPT_PATH
label_desc: Use image node_id 1 to create a new T2ISampler object from inherited base classes: BaseSampler with example: obj = T2ISampler(root_dir, sampling_type)