


from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_SCREAMING_SNAKE_CASE     :			Optional[Any]        =							logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE     :			List[str]        =							{
    """microsoft/beit-base-patch16-224-pt22k""": (
        """https://huggingface.co/microsoft/beit-base-patch16-224-pt22k/resolve/main/config.json"""
    ),
    # See all BEiT models at https://huggingface.co/models?filter=beit
}



class        A     (		snake_case_	):







     '''simple docstring'''







     lowerCamelCase :						int            =   """beit"""

     def __init__(				self    :							List[Any]			,				_UpperCamelCase    :							List[str]=8_192			,				_UpperCamelCase    :							str=768			,				_UpperCamelCase    :							Tuple=12			,				_UpperCamelCase    :							int=12			,				_UpperCamelCase    :							str=3_072			,				_UpperCamelCase    :							str="gelu"			,				_UpperCamelCase    :							Union[str, Any]=0.0			,				_UpperCamelCase    :							Union[str, Any]=0.0			,				_UpperCamelCase    :							Tuple=0.0_2			,				_UpperCamelCase    :							int=1e-12			,				_UpperCamelCase    :							Optional[Any]=224			,				_UpperCamelCase    :							Optional[Any]=16			,				_UpperCamelCase    :							Dict=3			,				_UpperCamelCase    :							Optional[int]=False			,				_UpperCamelCase    :							Optional[Any]=False			,				_UpperCamelCase    :							Any=False			,				_UpperCamelCase    :							int=False			,				_UpperCamelCase    :							Union[str, Any]=0.1			,				_UpperCamelCase    :							str=0.1			,				_UpperCamelCase    :							List[str]=True			,				_UpperCamelCase    :							Dict=[3, 5, 7, 11]			,				_UpperCamelCase    :							List[str]=[1, 2, 3, 6]			,				_UpperCamelCase    :							Dict=True			,				_UpperCamelCase    :							Optional[int]=0.4			,				_UpperCamelCase    :							Any=256			,				_UpperCamelCase    :							List[Any]=1			,				_UpperCamelCase    :							str=False			,				_UpperCamelCase    :							Optional[Any]=255			,				**_UpperCamelCase    :							Optional[Any]			,				):
      super().__init__(**_UpperCamelCase)

      _lowercase:       List[Any]						=				vocab_size
      _lowercase:       List[str]						=				hidden_size
      _lowercase:       str						=				num_hidden_layers
      _lowercase:       Union[str, Any]						=				num_attention_heads
      _lowercase:       Optional[int]						=				intermediate_size
      _lowercase:       Tuple						=				hidden_act
      _lowercase:       Optional[Any]						=				hidden_dropout_prob
      _lowercase:       List[str]						=				attention_probs_dropout_prob
      _lowercase:       List[Any]						=				initializer_range
      _lowercase:       Union[str, Any]						=				layer_norm_eps

      _lowercase:       List[Any]						=				image_size
      _lowercase:       Dict						=				patch_size
      _lowercase:       Optional[int]						=				num_channels
      _lowercase:       str						=				use_mask_token
      _lowercase:       Any						=				use_absolute_position_embeddings
      _lowercase:       List[Any]						=				use_relative_position_bias
      _lowercase:       Any						=				use_shared_relative_position_bias
      _lowercase:       List[str]						=				layer_scale_init_value
      _lowercase:       List[str]						=				drop_path_rate
      _lowercase:       Any						=				use_mean_pooling
      # decode head attributes (semantic segmentation)
      _lowercase:       Optional[Any]						=				out_indices
      _lowercase:       Tuple						=				pool_scales
      # auxiliary head attributes (semantic segmentation)
      _lowercase:       Optional[int]						=				use_auxiliary_head
      _lowercase:       int						=				auxiliary_loss_weight
      _lowercase:       Optional[int]						=				auxiliary_channels
      _lowercase:       Tuple						=				auxiliary_num_convs
      _lowercase:       int						=				auxiliary_concat_input
      _lowercase:       int						=				semantic_loss_ignore_index






class        A     (		snake_case_	):







     '''simple docstring'''







     lowerCamelCase :						Optional[int]            =   version.parse("""1.11"""	)

     @property
     def 					UpperCAmelCase__       (				self    :							List[str]):
      return OrderedDict(
          [
              ("pixel_values", {0: "batch", 1: "num_channels", 2: "height", 3: "width"}),
          ])






     @property
     def 					UpperCAmelCase__       (				self    :							Any):
      return 1e-4


"""simple docstring"""



import warnings

from ...utils import logging
from .image_processing_deformable_detr import DeformableDetrImageProcessor


SCREAMING_SNAKE_CASE__:int									=			logging.get_logger(__name__)






class  snake_case__      (       snake_case_       ):


 def __init__( self    ,		*lowerCamelCase    ,		**lowerCamelCase						):
        warnings.warn(
            "The class DeformableDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
            " Please use DeformableDetrImageProcessor instead."    ,		lowerCamelCase    ,		)
        super().__init__(*lowerCamelCase    ,		**lowerCamelCase						)
