



"""simple docstring"""







from typing import Any, Callable, Dict, List, Optional, Union

import PIL.Image
import torch
from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer

from diffusers import (
    AutoencoderKL,
    DDIMScheduler,
    DiffusionPipeline,
    LMSDiscreteScheduler,
    PNDMScheduler,
    StableDiffusionImgaImgPipeline,
    StableDiffusionInpaintPipelineLegacy,
    StableDiffusionPipeline,
    UNetaDConditionModel,
)
from diffusers.configuration_utils import FrozenDict
from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker
from diffusers.utils import deprecate, logging


lowercase__						:							Optional[int]        =      logging.get_logger(__name__)  # pylint: disable=invalid-name







class  UpperCamelCase__  (      lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""safety_checker""", """feature_extractor"""]



      def __init__( self							: Union[str, Any]       ,     SCREAMING_SNAKE_CASE_							: AutoencoderKL       ,     SCREAMING_SNAKE_CASE_							: CLIPTextModel       ,     SCREAMING_SNAKE_CASE_							: CLIPTokenizer       ,     SCREAMING_SNAKE_CASE_							: UNetaDConditionModel       ,     SCREAMING_SNAKE_CASE_							: Union[DDIMScheduler, PNDMScheduler, LMSDiscreteScheduler]       ,     SCREAMING_SNAKE_CASE_							: StableDiffusionSafetyChecker       ,     SCREAMING_SNAKE_CASE_							: CLIPImageProcessor       ,     SCREAMING_SNAKE_CASE_							: bool = True       ,     ):
        super().__init__()
        if hasattr(scheduler.config       ,     'steps_offset'			) and scheduler.config.steps_offset != 1:
          lowerCAmelCase_  :							List[str]								=					(
              F"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
              F" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
              'to update the config accordingly as leaving `steps_offset` might led to incorrect results'
              ' in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,'
              ' it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`'
              ' file'
          )
          deprecate('steps_offset!=1'       ,     '1.0.0'       ,     SCREAMING_SNAKE_CASE_       ,     standard_warn=SCREAMING_SNAKE_CASE_			)
          lowerCAmelCase_  :							Optional[Any]								=					dict(scheduler.config			)
          lowerCAmelCase_  :							Union[str, Any]								=					1
          lowerCAmelCase_  :							Optional[Any]								=					FrozenDict(SCREAMING_SNAKE_CASE_			)

        self.register_modules(
            vae=SCREAMING_SNAKE_CASE_       ,     text_encoder=SCREAMING_SNAKE_CASE_       ,     tokenizer=SCREAMING_SNAKE_CASE_       ,     unet=SCREAMING_SNAKE_CASE_       ,     scheduler=SCREAMING_SNAKE_CASE_       ,     safety_checker=SCREAMING_SNAKE_CASE_       ,     feature_extractor=SCREAMING_SNAKE_CASE_       ,     )
        self.register_to_config(requires_safety_checker=SCREAMING_SNAKE_CASE_			)



      @property
      def 	SCREAMING_SNAKE_CASE__					( self							: Tuple			):
        return {k: getattr(self       ,     SCREAMING_SNAKE_CASE_			) for k in self.config.keys() if not k.startswith('_'			)}



      def 	SCREAMING_SNAKE_CASE__					( self							: Optional[int]       ,     SCREAMING_SNAKE_CASE_							: Optional[Union[str, int]] = "auto"			):
        if slice_size == "auto":
          # half the attention head size is usually a good trade-off between
          # speed and memory
          lowerCAmelCase_  :							Optional[int]								=					self.unet.config.attention_head_dim // 2
        self.unet.set_attention_slice(SCREAMING_SNAKE_CASE_			)



      def 	SCREAMING_SNAKE_CASE__					( self							: Dict			):
        self.enable_attention_slicing(SCREAMING_SNAKE_CASE_			)



      @torch.no_grad()
      def 	SCREAMING_SNAKE_CASE__					( self							: str       ,     SCREAMING_SNAKE_CASE_							: Union[str, List[str]]       ,     SCREAMING_SNAKE_CASE_							: Union[torch.FloatTensor, PIL.Image.Image]       ,     SCREAMING_SNAKE_CASE_							: Union[torch.FloatTensor, PIL.Image.Image]       ,     SCREAMING_SNAKE_CASE_							: float = 0.8       ,     SCREAMING_SNAKE_CASE_							: Optional[int] = 5_0       ,     SCREAMING_SNAKE_CASE_							: Optional[float] = 7.5       ,     SCREAMING_SNAKE_CASE_							: Optional[Union[str, List[str]]] = None       ,     SCREAMING_SNAKE_CASE_							: Optional[int] = 1       ,     SCREAMING_SNAKE_CASE_							: Optional[float] = 0.0       ,     SCREAMING_SNAKE_CASE_							: Optional[torch.Generator] = None       ,     SCREAMING_SNAKE_CASE_							: Optional[str] = "pil"       ,     SCREAMING_SNAKE_CASE_							: bool = True       ,     SCREAMING_SNAKE_CASE_							: Optional[Callable[[int, int, torch.FloatTensor], None]] = None       ,     SCREAMING_SNAKE_CASE_							: int = 1       ,     ):
        # For more information on how this function works, please see: https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion#diffusers.StableDiffusionImg2ImgPipeline
        return StableDiffusionInpaintPipelineLegacy(**self.components			)(
            prompt=SCREAMING_SNAKE_CASE_       ,     image=SCREAMING_SNAKE_CASE_       ,     mask_image=SCREAMING_SNAKE_CASE_       ,     strength=SCREAMING_SNAKE_CASE_       ,     num_inference_steps=SCREAMING_SNAKE_CASE_       ,     guidance_scale=SCREAMING_SNAKE_CASE_       ,     negative_prompt=SCREAMING_SNAKE_CASE_       ,     num_images_per_prompt=SCREAMING_SNAKE_CASE_       ,     eta=SCREAMING_SNAKE_CASE_       ,     generator=SCREAMING_SNAKE_CASE_       ,     output_type=SCREAMING_SNAKE_CASE_       ,     return_dict=SCREAMING_SNAKE_CASE_       ,     callback=SCREAMING_SNAKE_CASE_       ,     )



      @torch.no_grad()
      def 	SCREAMING_SNAKE_CASE__					( self							: Tuple       ,     SCREAMING_SNAKE_CASE_							: Union[str, List[str]]       ,     SCREAMING_SNAKE_CASE_							: Union[torch.FloatTensor, PIL.Image.Image]       ,     SCREAMING_SNAKE_CASE_							: float = 0.8       ,     SCREAMING_SNAKE_CASE_							: Optional[int] = 5_0       ,     SCREAMING_SNAKE_CASE_							: Optional[float] = 7.5       ,     SCREAMING_SNAKE_CASE_							: Optional[Union[str, List[str]]] = None       ,     SCREAMING_SNAKE_CASE_							: Optional[int] = 1       ,     SCREAMING_SNAKE_CASE_							: Optional[float] = 0.0       ,     SCREAMING_SNAKE_CASE_							: Optional[torch.Generator] = None       ,     SCREAMING_SNAKE_CASE_							: Optional[str] = "pil"       ,     SCREAMING_SNAKE_CASE_							: bool = True       ,     SCREAMING_SNAKE_CASE_							: Optional[Callable[[int, int, torch.FloatTensor], None]] = None       ,     SCREAMING_SNAKE_CASE_							: int = 1       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]       ,     ):
        # For more information on how this function works, please see: https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion#diffusers.StableDiffusionImg2ImgPipeline
        return StableDiffusionImgaImgPipeline(**self.components			)(
            prompt=SCREAMING_SNAKE_CASE_       ,     image=SCREAMING_SNAKE_CASE_       ,     strength=SCREAMING_SNAKE_CASE_       ,     num_inference_steps=SCREAMING_SNAKE_CASE_       ,     guidance_scale=SCREAMING_SNAKE_CASE_       ,     negative_prompt=SCREAMING_SNAKE_CASE_       ,     num_images_per_prompt=SCREAMING_SNAKE_CASE_       ,     eta=SCREAMING_SNAKE_CASE_       ,     generator=SCREAMING_SNAKE_CASE_       ,     output_type=SCREAMING_SNAKE_CASE_       ,     return_dict=SCREAMING_SNAKE_CASE_       ,     callback=SCREAMING_SNAKE_CASE_       ,     callback_steps=SCREAMING_SNAKE_CASE_       ,     )





      @torch.no_grad()
      def 	SCREAMING_SNAKE_CASE__					( self							: Optional[int]       ,     SCREAMING_SNAKE_CASE_							: Union[str, List[str]]       ,     SCREAMING_SNAKE_CASE_							: int = 5_1_2       ,     SCREAMING_SNAKE_CASE_							: int = 5_1_2       ,     SCREAMING_SNAKE_CASE_							: int = 5_0       ,     SCREAMING_SNAKE_CASE_							: float = 7.5       ,     SCREAMING_SNAKE_CASE_							: Optional[Union[str, List[str]]] = None       ,     SCREAMING_SNAKE_CASE_							: Optional[int] = 1       ,     SCREAMING_SNAKE_CASE_							: float = 0.0       ,     SCREAMING_SNAKE_CASE_							: Optional[torch.Generator] = None       ,     SCREAMING_SNAKE_CASE_							: Optional[torch.FloatTensor] = None       ,     SCREAMING_SNAKE_CASE_							: Optional[str] = "pil"       ,     SCREAMING_SNAKE_CASE_							: bool = True       ,     SCREAMING_SNAKE_CASE_							: Optional[Callable[[int, int, torch.FloatTensor], None]] = None       ,     SCREAMING_SNAKE_CASE_							: int = 1       ,     ):
        # For more information on how this function https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion#diffusers.StableDiffusionPipeline
        return StableDiffusionPipeline(**self.components			)(
            prompt=SCREAMING_SNAKE_CASE_       ,     height=SCREAMING_SNAKE_CASE_       ,     width=SCREAMING_SNAKE_CASE_       ,     num_inference_steps=SCREAMING_SNAKE_CASE_       ,     guidance_scale=SCREAMING_SNAKE_CASE_       ,     negative_prompt=SCREAMING_SNAKE_CASE_       ,     num_images_per_prompt=SCREAMING_SNAKE_CASE_       ,     eta=SCREAMING_SNAKE_CASE_       ,     generator=SCREAMING_SNAKE_CASE_       ,     latents=SCREAMING_SNAKE_CASE_       ,     output_type=SCREAMING_SNAKE_CASE_       ,     return_dict=SCREAMING_SNAKE_CASE_       ,     callback=SCREAMING_SNAKE_CASE_       ,     callback_steps=SCREAMING_SNAKE_CASE_       ,     )










"""simple docstring"""







from ..utils import DummyObject, requires_backends







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Any       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[Any]       ,     *SCREAMING_SNAKE_CASE_							: List[Any]       ,     **SCREAMING_SNAKE_CASE_							: Any			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: int       ,     *SCREAMING_SNAKE_CASE_							: List[Any]       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: Optional[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: int       ,     *SCREAMING_SNAKE_CASE_							: int       ,     **SCREAMING_SNAKE_CASE_							: List[str]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[Any]       ,     *SCREAMING_SNAKE_CASE_							: str       ,     **SCREAMING_SNAKE_CASE_							: str			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: List[Any]       ,     **SCREAMING_SNAKE_CASE_							: Dict			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: List[Any]       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: int       ,     *SCREAMING_SNAKE_CASE_							: int       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: str       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Any       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[str]       ,     *SCREAMING_SNAKE_CASE_							: Tuple       ,     **SCREAMING_SNAKE_CASE_							: List[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Optional[int]       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[int]       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: str			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[int]       ,     *SCREAMING_SNAKE_CASE_							: List[Any]       ,     **SCREAMING_SNAKE_CASE_							: int			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: int       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Union[str, Any]       ,     *SCREAMING_SNAKE_CASE_							: Tuple       ,     **SCREAMING_SNAKE_CASE_							: str			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[str]       ,     *SCREAMING_SNAKE_CASE_							: int       ,     **SCREAMING_SNAKE_CASE_							: List[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Dict       ,     **SCREAMING_SNAKE_CASE_							: Optional[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: Any       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[str]       ,     *SCREAMING_SNAKE_CASE_							: Optional[int]       ,     **SCREAMING_SNAKE_CASE_							: Optional[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: str       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: int			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: str       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[int]       ,     *SCREAMING_SNAKE_CASE_							: Union[str, Any]       ,     **SCREAMING_SNAKE_CASE_							: List[str]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: int			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Optional[int]       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[int]       ,     *SCREAMING_SNAKE_CASE_							: Union[str, Any]       ,     **SCREAMING_SNAKE_CASE_							: Any			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: int       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: Union[str, Any]       ,     **SCREAMING_SNAKE_CASE_							: List[str]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Any       ,     **SCREAMING_SNAKE_CASE_							: Dict			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[str]       ,     *SCREAMING_SNAKE_CASE_							: Tuple       ,     **SCREAMING_SNAKE_CASE_							: Dict			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Any       ,     *SCREAMING_SNAKE_CASE_							: Dict       ,     **SCREAMING_SNAKE_CASE_							: Dict			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Union[str, Any]       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Tuple       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: Any			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Tuple       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: str       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: Tuple       ,     **SCREAMING_SNAKE_CASE_							: str			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: int       ,     **SCREAMING_SNAKE_CASE_							: Optional[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: Optional[int]       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Any       ,     *SCREAMING_SNAKE_CASE_							: Optional[int]       ,     **SCREAMING_SNAKE_CASE_							: Dict			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: Optional[int]       ,     **SCREAMING_SNAKE_CASE_							: Optional[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[int]       ,     *SCREAMING_SNAKE_CASE_							: Tuple       ,     **SCREAMING_SNAKE_CASE_							: Optional[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Union[str, Any]       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: Any       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: Dict       ,     **SCREAMING_SNAKE_CASE_							: Any			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: int       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: str			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[Any]       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: List[str]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: str       ,     *SCREAMING_SNAKE_CASE_							: int       ,     **SCREAMING_SNAKE_CASE_							: str			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: str       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[int]       ,     *SCREAMING_SNAKE_CASE_							: Dict       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[str]       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: str			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: Any       ,     **SCREAMING_SNAKE_CASE_							: int			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Union[str, Any]       ,     **SCREAMING_SNAKE_CASE_							: List[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Union[str, Any]       ,     *SCREAMING_SNAKE_CASE_							: str       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: Any       ,     **SCREAMING_SNAKE_CASE_							: List[str]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[str]       ,     *SCREAMING_SNAKE_CASE_							: Optional[int]       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: str       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: List[str]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: Any       ,     **SCREAMING_SNAKE_CASE_							: List[str]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[str]       ,     *SCREAMING_SNAKE_CASE_							: Dict       ,     **SCREAMING_SNAKE_CASE_							: Dict			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: List[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: Union[str, Any]       ,     **SCREAMING_SNAKE_CASE_							: List[Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Any       ,     *SCREAMING_SNAKE_CASE_							: int       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Dict       ,     *SCREAMING_SNAKE_CASE_							: str       ,     **SCREAMING_SNAKE_CASE_							: Tuple			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[Any]       ,     *SCREAMING_SNAKE_CASE_							: List[Any]       ,     **SCREAMING_SNAKE_CASE_							: Optional[int]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Any       ,     *SCREAMING_SNAKE_CASE_							: Dict       ,     **SCREAMING_SNAKE_CASE_							: Union[str, Any]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: str       ,     *SCREAMING_SNAKE_CASE_							: Optional[Any]       ,     **SCREAMING_SNAKE_CASE_							: List[str]			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Tuple       ,     *SCREAMING_SNAKE_CASE_							: List[str]       ,     **SCREAMING_SNAKE_CASE_							: int			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: List[Any]       ,     *SCREAMING_SNAKE_CASE_							: List[Any]       ,     **SCREAMING_SNAKE_CASE_							: Dict			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: Optional[Any]       ,     *SCREAMING_SNAKE_CASE_							: List[Any]       ,     **SCREAMING_SNAKE_CASE_							: str			):
        requires_backends(self       ,     ['vision']			)







class  UpperCamelCase__  (      metaclass=lowercase_    ):




      """simple docstring"""




      _SCREAMING_SNAKE_CASE    							=	["""vision"""]



      def __init__( self							: str       ,     *SCREAMING_SNAKE_CASE_							: Tuple       ,     **SCREAMING_SNAKE_CASE_							: Optional[Any]			):
        requires_backends(self       ,     ['vision']			)





