class_docstr: Pipeline for text-to-image generation using a latent consistency model.
  
  This model inherits from [`DiffusionPipeline`]. Check the superclass documentation for the generic methods
  implemented for all pipelines (downloading, saving, running on a particular device, etc.).
  
  The pipeline also inherits the following loading methods:
      - [`~loaders.TextualInversionLoaderMixin.load_textual_inversion`] for loading textual inversion embeddings
      - [`~loaders.LoraLoaderMixin.load_lora_weights`] for loading LoRA weights
      - [`~loaders.LoraLoaderMixin.save_lora_weights`] for saving LoRA weights
      - [`~loaders.FromSingleFileMixin.from_single_file`] for loading `.ckpt` files
      - [`~loaders.IPAdapterMixin.load_ip_adapter`] for loading IP Adapters
  
  Args:
      vae ([`AutoencoderKL`]):
          Variational Auto-Encoder (VAE) model to encode and decode images to and from latent representations.
      text_encoder ([`~transformers.CLIPTextModel`]):
          Frozen text-encoder ([clip-vit-large-patch14](https://huggingface.co/openai/clip-vit-large-patch14)).
      tokenizer ([`~transformers.CLIPTokenizer`]):
          A `CLIPTokenizer` to tokenize text.
      unet ([`UNet2DConditionModel`]):
          A `UNet2DConditionModel` to denoise the encoded image latents.
      scheduler ([`SchedulerMixin`]):
          A scheduler to be used in combination with `unet` to denoise the encoded image latents. Currently only
          supports [`LCMScheduler`].
      safety_checker ([`StableDiffusionSafetyChecker`]):
          Classification module that estimates whether generated images could be considered offensive or harmful.
          Please refer to the [model card](https://huggingface.co/runwayml/stable-diffusion-v1-5) for more details
          about a model's potential harms.
      feature_extractor ([`~transformers.CLIPImageProcessor`]):
          A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
      requires_safety_checker (`bool`, *optional*, defaults to `True`):
          Whether the pipeline requires a safety checker component.
docstr: Enables the FreeU mechanism as in https://arxiv.org/abs/2309.11497.
  
  The suffixes after the scaling factors represent the stages where they are being applied.
  
  Please refer to the [official repository](https://github.com/ChenyangSi/FreeU) for combinations of the values
  that are known to work well for different pipelines such as Stable Diffusion v1, v2, and Stable Diffusion XL.
  
  Args:
      s1 (`float`):
          Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to
          mitigate "oversmoothing effect" in the enhanced denoising process.
      s2 (`float`):
          Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to
          mitigate "oversmoothing effect" in the enhanced denoising process.
      b1 (`float`): Scaling factor for stage 1 to amplify the contributions of backbone features.
      b2 (`float`): Scaling factor for stage 2 to amplify the contributions of backbone features.
code: def enable_freeu(self, s1: float, s2: float, b1: float, b2: float):
      r"""Enables the FreeU mechanism as in https://arxiv.org/abs/2309.11497.
  
      The suffixes after the scaling factors represent the stages where they are being applied.
  
      Please refer to the [official repository](https://github.com/ChenyangSi/FreeU) for combinations of the values
      that are known to work well for different pipelines such as Stable Diffusion v1, v2, and Stable Diffusion XL.
  
      Args:
          s1 (`float`):
              Scaling factor for stage 1 to attenuate the contributions of the skip features. This is done to
              mitigate "oversmoothing effect" in the enhanced denoising process.
          s2 (`float`):
              Scaling factor for stage 2 to attenuate the contributions of the skip features. This is done to
              mitigate "oversmoothing effect" in the enhanced denoising process.
          b1 (`float`): Scaling factor for stage 1 to amplify the contributions of backbone features.
          b2 (`float`): Scaling factor for stage 2 to amplify the contributions of backbone features.
      """
      if not hasattr(self, "unet"):
          raise ValueError(
              "The pipeline must have `unet` for using FreeU."
          )
      self.unet.enable_freeu(s1=s1, s2=s2, b1=b1, b2=b2)
  
imports: import inspect
  from typing import Any, Callable, Dict, List, Optional, Union
  import torch
  from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer, CLIPVisionModelWithProjection
  from ...image_processor import PipelineImageInput, VaeImageProcessor
  from ...loaders import FromSingleFileMixin, IPAdapterMixin, LoraLoaderMixin, TextualInversionLoaderMixin
  from ...models import AutoencoderKL, ImageProjection, UNet2DConditionModel
  from ...models.lora import adjust_lora_scale_text_encoder
  from ...schedulers import LCMScheduler
  from ...utils import USE_PEFT_BACKEND, deprecate, logging, replace_example_docstring, scale_lora_layers, unscale_lora_layers
  from ...utils.torch_utils import randn_tensor
  from ..pipeline_utils import DiffusionPipeline
  from ..stable_diffusion import StableDiffusionPipelineOutput, StableDiffusionSafetyChecker
label_desc: Use image node_id 6 for calling the LatentConsistencyModelPipeline obj's underlying member method code with example usage: obj.enable_freeu(s1, s2, b1, b2) without return types