






from ..utils import DummyObject, requires_backends


class       __lowercase      (	metaclass=lowercase_  ):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE   						=				["torch", "transformers", "onnx"]




     def __init__(				self       :			Dict ,	*UpperCamelCase_       :			Any ,	**UpperCamelCase_       :			Tuple				):


         """simple docstring"""



         requires_backends(self ,	["""torch""", """transformers""", """onnx"""]				)




     @classmethod
     def 		lowerCAmelCase_     (				cls       :			str ,	*UpperCamelCase_       :			Optional[int] ,	**UpperCamelCase_       :			Any				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)





     @classmethod
     def 		lowerCAmelCase_     (				cls       :			Tuple ,	*UpperCamelCase_       :			Any ,	**UpperCamelCase_       :			str				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)


class       __lowercase      (	metaclass=lowercase_  ):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE   						=				["torch", "transformers", "onnx"]




     def __init__(				self       :			Optional[Any] ,	*UpperCamelCase_       :			Optional[int] ,	**UpperCamelCase_       :			Optional[Any]				):


         """simple docstring"""



         requires_backends(self ,	["""torch""", """transformers""", """onnx"""]				)




     @classmethod
     def 		lowerCAmelCase_     (				cls       :			List[str] ,	*UpperCamelCase_       :			str ,	**UpperCamelCase_       :			Dict				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)





     @classmethod
     def 		lowerCAmelCase_     (				cls       :			Optional[int] ,	*UpperCamelCase_       :			Union[str, Any] ,	**UpperCamelCase_       :			Any				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)


class       __lowercase      (	metaclass=lowercase_  ):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE   						=				["torch", "transformers", "onnx"]




     def __init__(				self       :			Union[str, Any] ,	*UpperCamelCase_       :			int ,	**UpperCamelCase_       :			List[Any]				):


         """simple docstring"""



         requires_backends(self ,	["""torch""", """transformers""", """onnx"""]				)




     @classmethod
     def 		lowerCAmelCase_     (				cls       :			Optional[Any] ,	*UpperCamelCase_       :			List[Any] ,	**UpperCamelCase_       :			str				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)





     @classmethod
     def 		lowerCAmelCase_     (				cls       :			str ,	*UpperCamelCase_       :			Optional[int] ,	**UpperCamelCase_       :			Dict				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)


class       __lowercase      (	metaclass=lowercase_  ):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE   						=				["torch", "transformers", "onnx"]




     def __init__(				self       :			List[str] ,	*UpperCamelCase_       :			Optional[int] ,	**UpperCamelCase_       :			int				):


         """simple docstring"""



         requires_backends(self ,	["""torch""", """transformers""", """onnx"""]				)




     @classmethod
     def 		lowerCAmelCase_     (				cls       :			Dict ,	*UpperCamelCase_       :			Dict ,	**UpperCamelCase_       :			Tuple				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)





     @classmethod
     def 		lowerCAmelCase_     (				cls       :			Optional[int] ,	*UpperCamelCase_       :			Tuple ,	**UpperCamelCase_       :			List[Any]				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)


class       __lowercase      (	metaclass=lowercase_  ):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE   						=				["torch", "transformers", "onnx"]




     def __init__(				self       :			List[str] ,	*UpperCamelCase_       :			int ,	**UpperCamelCase_       :			str				):


         """simple docstring"""



         requires_backends(self ,	["""torch""", """transformers""", """onnx"""]				)




     @classmethod
     def 		lowerCAmelCase_     (				cls       :			int ,	*UpperCamelCase_       :			Optional[int] ,	**UpperCamelCase_       :			List[Any]				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)





     @classmethod
     def 		lowerCAmelCase_     (				cls       :			List[Any] ,	*UpperCamelCase_       :			int ,	**UpperCamelCase_       :			Optional[Any]				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)


class       __lowercase      (	metaclass=lowercase_  ):







     '''simple docstring'''
     SCREAMING_SNAKE_CASE   						=				["torch", "transformers", "onnx"]




     def __init__(				self       :			Tuple ,	*UpperCamelCase_       :			List[str] ,	**UpperCamelCase_       :			Tuple				):


         """simple docstring"""



         requires_backends(self ,	["""torch""", """transformers""", """onnx"""]				)




     @classmethod
     def 		lowerCAmelCase_     (				cls       :			Optional[Any] ,	*UpperCamelCase_       :			Union[str, Any] ,	**UpperCamelCase_       :			List[str]				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)





     @classmethod
     def 		lowerCAmelCase_     (				cls       :			List[str] ,	*UpperCamelCase_       :			Any ,	**UpperCamelCase_       :			str				):


         """simple docstring"""



         requires_backends(cls ,	["""torch""", """transformers""", """onnx"""]				)












from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
  if not (is_transformers_available() and is_torch_available()):
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  from ...utils.dummy_torch_and_transformers_objects import (
      ImageTextPipelineOutput,
      UniDiffuserPipeline,
  )
else:
  from .modeling_text_decoder import UniDiffuserTextDecoder
  from .modeling_uvit import UniDiffuserModel, UTransformeraDModel
  from .pipeline_unidiffuser import ImageTextPipelineOutput, UniDiffuserPipeline




