

'''simple docstring'''

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


lowercase__			    =			logging.get_logger(__name__)

lowercase__			    =			{
    "hustvl/yolos-small": "https://huggingface.co/hustvl/yolos-small/resolve/main/config.json",
    # See all YOLOS models at https://huggingface.co/models?filter=yolos
}




class        A_ (				__lowerCAmelCase							):






     '''simple docstring'''



     UpperCAmelCase_						:	Dict  		=  """yolos"""


     def __init__(		self :     Optional[Any]     ,			lowercase_ :     Any=768     ,			lowercase_ :     int=12     ,			lowercase_ :     Tuple=12     ,			lowercase_ :     List[str]=3_072     ,			lowercase_ :     Union[str, Any]="gelu"     ,			lowercase_ :     List[str]=0.0     ,			lowercase_ :     List[Any]=0.0     ,			lowercase_ :     List[Any]=0.02     ,			lowercase_ :     Optional[int]=1E-12     ,			lowercase_ :     List[Any]=[512, 864]     ,			lowercase_ :     str=16     ,			lowercase_ :     Optional[int]=3     ,			lowercase_ :     List[str]=True     ,			lowercase_ :     Optional[int]=100     ,			lowercase_ :     str=True     ,			lowercase_ :     int=False     ,			lowercase_ :     Optional[Any]=1     ,			lowercase_ :     Dict=5     ,			lowercase_ :     Tuple=2     ,			lowercase_ :     str=5     ,			lowercase_ :     int=2     ,			lowercase_ :     int=0.1     ,			**lowercase_ :     List[str]     ,			)						->	List[Any]:
      super().__init__(**lowercase_       )

      UpperCAmelCase       :	Optional[int]											= hidden_size
      UpperCAmelCase       :	List[str]											= num_hidden_layers
      UpperCAmelCase       :	Optional[Any]											= num_attention_heads
      UpperCAmelCase       :	List[str]											= intermediate_size
      UpperCAmelCase       :	Tuple											= hidden_act
      UpperCAmelCase       :	Any											= hidden_dropout_prob
      UpperCAmelCase       :	Dict											= attention_probs_dropout_prob
      UpperCAmelCase       :	List[Any]											= initializer_range
      UpperCAmelCase       :	int											= layer_norm_eps
      UpperCAmelCase       :	str											= image_size
      UpperCAmelCase       :	Optional[Any]											= patch_size
      UpperCAmelCase       :	Dict											= num_channels
      UpperCAmelCase       :	Optional[Any]											= qkv_bias
      UpperCAmelCase       :	List[str]											= num_detection_tokens
      UpperCAmelCase       :	Tuple											= use_mid_position_embeddings
      UpperCAmelCase       :	Tuple											= auxiliary_loss
      # Hungarian matcher
      UpperCAmelCase       :	Optional[int]											= class_cost
      UpperCAmelCase       :	Tuple											= bbox_cost
      UpperCAmelCase       :	Optional[int]											= giou_cost
      # Loss coefficients
      UpperCAmelCase       :	Union[str, Any]											= bbox_loss_coefficient
      UpperCAmelCase       :	List[str]											= giou_loss_coefficient
      UpperCAmelCase       :	Optional[int]											= eos_coefficient




class        A_ (				__lowerCAmelCase							):






     '''simple docstring'''



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


     @property
     def    UpperCAmelCase_       (		self :     Any       )						->	Mapping[str, Mapping[int, str]]:
      return OrderedDict(
          [
              ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
          ]       )


     @property
     def    UpperCAmelCase_       (		self :     Optional[int]       )						->	float:
      return 1E-4




     @property
     def    UpperCAmelCase_       (		self :     List[str]       )						->	int:
      return 12





"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import _LazyModule


lowercase__					       =	{'processing_wav2vec2_with_lm': ['Wav2Vec2ProcessorWithLM']}


if TYPE_CHECKING:
 from .processing_wavaveca_with_lm import WavaVecaProcessorWithLM
else:
 import sys

 lowercase__					       =	_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)


