


import logging

from transformers.configuration_utils import PretrainedConfig


SCREAMING_SNAKE_CASE__     					=			logging.getLogger(__name__)



class 						_UpperCAmelCase      (     lowercase							):
		lowerCamelCase_	:			List[Any]       			=  """masked_bert"""






		def __init__(						self				:     List[str]   ,  UpperCAmelCase				:     Optional[Any]=3_05_22   ,  UpperCAmelCase				:     Optional[Any]=7_68   ,  UpperCAmelCase				:     Optional[int]=12   ,  UpperCAmelCase				:     Optional[Any]=12   ,  UpperCAmelCase				:     Any=30_72   ,  UpperCAmelCase				:     List[Any]="gelu"   ,  UpperCAmelCase				:     Dict=0.1   ,  UpperCAmelCase				:     str=0.1   ,  UpperCAmelCase				:     str=5_12   ,  UpperCAmelCase				:     int=2   ,  UpperCAmelCase				:     Tuple=0.02   ,  UpperCAmelCase				:     Tuple=1E-12   ,  UpperCAmelCase				:     Any=0   ,  UpperCAmelCase				:     int="topK"   ,  UpperCAmelCase				:     Tuple="constant"   ,  UpperCAmelCase				:     str=0.0   ,  **UpperCAmelCase				:     Union[str, Any]   ,  ):
				super().__init__(pad_token_id=UpperCAmelCase   ,  **UpperCAmelCase)

				SCREAMING_SNAKE_CASE_				:Union[str, Any]				     =						vocab_size
				SCREAMING_SNAKE_CASE_				:Optional[int]				     =						hidden_size
				SCREAMING_SNAKE_CASE_				:List[str]				     =						num_hidden_layers
				SCREAMING_SNAKE_CASE_				:Optional[int]				     =						num_attention_heads
				SCREAMING_SNAKE_CASE_				:List[Any]				     =						hidden_act
				SCREAMING_SNAKE_CASE_				:Union[str, Any]				     =						intermediate_size
				SCREAMING_SNAKE_CASE_				:Any				     =						hidden_dropout_prob
				SCREAMING_SNAKE_CASE_				:Any				     =						attention_probs_dropout_prob
				SCREAMING_SNAKE_CASE_				:int				     =						max_position_embeddings
				SCREAMING_SNAKE_CASE_				:int				     =						type_vocab_size
				SCREAMING_SNAKE_CASE_				:List[str]				     =						initializer_range
				SCREAMING_SNAKE_CASE_				:Union[str, Any]				     =						layer_norm_eps
				SCREAMING_SNAKE_CASE_				:Any				     =						pruning_method
				SCREAMING_SNAKE_CASE_				:Any				     =						mask_init
				SCREAMING_SNAKE_CASE_				:str				     =						mask_scale










from typing import TYPE_CHECKING

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


SCREAMING_SNAKE_CASE__     					=			{
    "configuration_owlvit": [
        "OWLVIT_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "OwlViTConfig",
        "OwlViTOnnxConfig",
        "OwlViTTextConfig",
        "OwlViTVisionConfig",
    ],
    "processing_owlvit": ["OwlViTProcessor"],
}


try:
		if not is_vision_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		SCREAMING_SNAKE_CASE__     					=			["OwlViTFeatureExtractor"]
		SCREAMING_SNAKE_CASE__     					=			["OwlViTImageProcessor"]

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		SCREAMING_SNAKE_CASE__     					=			[
		    "OWLVIT_PRETRAINED_MODEL_ARCHIVE_LIST",
		    "OwlViTModel",
		    "OwlViTPreTrainedModel",
		    "OwlViTTextModel",
		    "OwlViTVisionModel",
		    "OwlViTForObjectDetection",
		]

if TYPE_CHECKING:
		from .configuration_owlvit import (
		    OWLVIT_PRETRAINED_CONFIG_ARCHIVE_MAP,
		    OwlViTConfig,
		    OwlViTOnnxConfig,
		    OwlViTTextConfig,
		    OwlViTVisionConfig,
		)
		from .processing_owlvit import OwlViTProcessor

		try:
				if not is_vision_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .feature_extraction_owlvit import OwlViTFeatureExtractor
				from .image_processing_owlvit import OwlViTImageProcessor

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_owlvit import (
				    OWLVIT_PRETRAINED_MODEL_ARCHIVE_LIST,
				    OwlViTForObjectDetection,
				    OwlViTModel,
				    OwlViTPreTrainedModel,
				    OwlViTTextModel,
				    OwlViTVisionModel,
				)

else:
		import sys

		SCREAMING_SNAKE_CASE__     					=			_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)






