




from ..utils import DummyObject, requires_backends




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Dict											=      ["""sentencepiece"""]





				def __init__(   self       :  Any      ,   *__lowerCamelCase       :  Union[str, Any]      ,   **__lowerCamelCase       :  Tuple							)      ->  Any:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Optional[Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  Any      ,   *__lowerCamelCase       :  Tuple      ,   **__lowerCamelCase       :  Tuple							)      ->  Union[str, Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							List[str]											=      ["""sentencepiece"""]





				def __init__(   self       :  List[Any]      ,   *__lowerCamelCase       :  Tuple      ,   **__lowerCamelCase       :  Dict							)      ->  Optional[int]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							str											=      ["""sentencepiece"""]





				def __init__(   self       :  Tuple      ,   *__lowerCamelCase       :  List[str]      ,   **__lowerCamelCase       :  Dict							)      ->  Optional[Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Optional[Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  Optional[int]      ,   *__lowerCamelCase       :  Optional[Any]      ,   **__lowerCamelCase       :  List[Any]							)      ->  Union[str, Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Union[str, Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  List[str]      ,   *__lowerCamelCase       :  Optional[int]      ,   **__lowerCamelCase       :  List[str]							)      ->  List[Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Union[str, Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  List[str]      ,   *__lowerCamelCase       :  Optional[Any]      ,   **__lowerCamelCase       :  Dict							)      ->  Optional[int]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Union[str, Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  List[str]      ,   *__lowerCamelCase       :  Optional[int]      ,   **__lowerCamelCase       :  int							)      ->  Dict:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Optional[int]											=      ["""sentencepiece"""]





				def __init__(   self       :  str      ,   *__lowerCamelCase       :  int      ,   **__lowerCamelCase       :  Union[str, Any]							)      ->  Dict:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Dict											=      ["""sentencepiece"""]





				def __init__(   self       :  Optional[int]      ,   *__lowerCamelCase       :  Optional[int]      ,   **__lowerCamelCase       :  int							)      ->  Dict:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Optional[Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  List[str]      ,   *__lowerCamelCase       :  Dict      ,   **__lowerCamelCase       :  str							)      ->  List[str]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Dict											=      ["""sentencepiece"""]





				def __init__(   self       :  Optional[Any]      ,   *__lowerCamelCase       :  Tuple      ,   **__lowerCamelCase       :  Union[str, Any]							)      ->  List[Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							List[str]											=      ["""sentencepiece"""]





				def __init__(   self       :  Any      ,   *__lowerCamelCase       :  Any      ,   **__lowerCamelCase       :  List[str]							)      ->  Union[str, Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Union[str, Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  Optional[Any]      ,   *__lowerCamelCase       :  Dict      ,   **__lowerCamelCase       :  str							)      ->  Optional[int]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Optional[int]											=      ["""sentencepiece"""]





				def __init__(   self       :  Union[str, Any]      ,   *__lowerCamelCase       :  Union[str, Any]      ,   **__lowerCamelCase       :  Optional[int]							)      ->  Optional[Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							int											=      ["""sentencepiece"""]





				def __init__(   self       :  Union[str, Any]      ,   *__lowerCamelCase       :  Any      ,   **__lowerCamelCase       :  str							)      ->  Optional[Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Optional[Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  int      ,   *__lowerCamelCase       :  Optional[int]      ,   **__lowerCamelCase       :  Any							)      ->  Optional[int]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							List[Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  str      ,   *__lowerCamelCase       :  int      ,   **__lowerCamelCase       :  Tuple							)      ->  Optional[Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Tuple											=      ["""sentencepiece"""]





				def __init__(   self       :  List[str]      ,   *__lowerCamelCase       :  List[str]      ,   **__lowerCamelCase       :  str							)      ->  Union[str, Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Any											=      ["""sentencepiece"""]





				def __init__(   self       :  Optional[Any]      ,   *__lowerCamelCase       :  Tuple      ,   **__lowerCamelCase       :  Dict							)      ->  Any:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Any											=      ["""sentencepiece"""]





				def __init__(   self       :  List[str]      ,   *__lowerCamelCase       :  Any      ,   **__lowerCamelCase       :  Union[str, Any]							)      ->  Dict:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							int											=      ["""sentencepiece"""]





				def __init__(   self       :  Union[str, Any]      ,   *__lowerCamelCase       :  List[str]      ,   **__lowerCamelCase       :  Optional[int]							)      ->  Optional[int]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Union[str, Any]											=      ["""sentencepiece"""]





				def __init__(   self       :  str      ,   *__lowerCamelCase       :  Tuple      ,   **__lowerCamelCase       :  Dict							)      ->  Optional[int]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Tuple											=      ["""sentencepiece"""]





				def __init__(   self       :  Dict      ,   *__lowerCamelCase       :  Any      ,   **__lowerCamelCase       :  List[Any]							)      ->  List[Any]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Optional[int]											=      ["""sentencepiece"""]





				def __init__(   self       :  List[Any]      ,   *__lowerCamelCase       :  str      ,   **__lowerCamelCase       :  Optional[int]							)      ->  int:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Any											=      ["""sentencepiece"""]





				def __init__(   self       :  List[str]      ,   *__lowerCamelCase       :  Any      ,   **__lowerCamelCase       :  Tuple							)      ->  int:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							List[str]											=      ["""sentencepiece"""]





				def __init__(   self       :  Union[str, Any]      ,   *__lowerCamelCase       :  int      ,   **__lowerCamelCase       :  int							)      ->  Tuple:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							str											=      ["""sentencepiece"""]





				def __init__(   self       :  List[str]      ,   *__lowerCamelCase       :  Tuple      ,   **__lowerCamelCase       :  Optional[Any]							)      ->  Tuple:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							Any											=      ["""sentencepiece"""]





				def __init__(   self       :  Any      ,   *__lowerCamelCase       :  Union[str, Any]      ,   **__lowerCamelCase       :  int							)      ->  Optional[int]:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							List[str]											=      ["""sentencepiece"""]





				def __init__(   self       :  str      ,   *__lowerCamelCase       :  int      ,   **__lowerCamelCase       :  List[Any]							)      ->  Dict:
							requires_backends(self      ,   ["sentencepiece"]							)




class 					snake_case__							(metaclass=_UpperCamelCase     ):
				"""simple docstring"""



				SCREAMING_SNAKE_CASE_ :							int											=      ["""sentencepiece"""]





				def __init__(   self       :  Optional[int]      ,   *__lowerCamelCase       :  Dict      ,   **__lowerCamelCase       :  int							)      ->  Tuple:
							requires_backends(self      ,   ["sentencepiece"]							)












from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_tf_available,
    is_torch_available,
    is_vision_available,
)


__lowerCAmelCase	:       Dict     =	{
    'configuration_blip': [
        'BLIP_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'BlipConfig',
        'BlipTextConfig',
        'BlipVisionConfig',
    ],
    'processing_blip': ['BlipProcessor'],
}

try:
		if not is_vision_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__lowerCAmelCase	:       Optional[Any]     =	['BlipImageProcessor']


try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__lowerCAmelCase	:       List[Any]     =	[
		    'BLIP_PRETRAINED_MODEL_ARCHIVE_LIST',
		    'BlipModel',
		    'BlipPreTrainedModel',
		    'BlipForConditionalGeneration',
		    'BlipForQuestionAnswering',
		    'BlipVisionModel',
		    'BlipTextModel',
		    'BlipForImageTextRetrieval',
		]

try:
		if not is_tf_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__lowerCAmelCase	:       Any     =	[
		    'TF_BLIP_PRETRAINED_MODEL_ARCHIVE_LIST',
		    'TFBlipModel',
		    'TFBlipPreTrainedModel',
		    'TFBlipForConditionalGeneration',
		    'TFBlipForQuestionAnswering',
		    'TFBlipVisionModel',
		    'TFBlipTextModel',
		    'TFBlipForImageTextRetrieval',
		]

if TYPE_CHECKING:
		from .configuration_blip import BLIP_PRETRAINED_CONFIG_ARCHIVE_MAP, BlipConfig, BlipTextConfig, BlipVisionConfig
		from .processing_blip import BlipProcessor

		try:
				if not is_vision_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .image_processing_blip import BlipImageProcessor

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_blip import (
				    BLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
				    BlipForConditionalGeneration,
				    BlipForImageTextRetrieval,
				    BlipForQuestionAnswering,
				    BlipModel,
				    BlipPreTrainedModel,
				    BlipTextModel,
				    BlipVisionModel,
				)

		try:
				if not is_tf_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_tf_blip import (
				    TF_BLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
				    TFBlipForConditionalGeneration,
				    TFBlipForImageTextRetrieval,
				    TFBlipForQuestionAnswering,
				    TFBlipModel,
				    TFBlipPreTrainedModel,
				    TFBlipTextModel,
				    TFBlipVisionModel,
				)

else:
		import sys

		__lowerCAmelCase	:       List[str]     =	_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)






