

from ....configuration_utils import PretrainedConfig
from ....utils import logging


__UpperCAmelCase    				=     logging.get_logger(__name__)

__UpperCAmelCase    				=     {
    'Visual-Attention-Network/van-base': (
        'https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'
    ),
}





class A__    ( A ):



 """simple docstring"""







 _lowercase     :					Optional[int]      =						'''van'''

 def __init__(		self :	List[Any]     ,						A_ :	Union[str, Any]=2_2_4     ,						A_ :	Dict=3     ,						A_ :	Tuple=[7, 3, 3, 3]     ,						A_ :	Union[str, Any]=[4, 2, 2, 2]     ,						A_ :	Any=[6_4, 1_2_8, 3_2_0, 5_1_2]     ,						A_ :	Union[str, Any]=[3, 3, 1_2, 3]     ,						A_ :	str=[8, 8, 4, 4]     ,						A_ :	Dict="gelu"     ,						A_ :	Dict=0.02     ,						A_ :	Any=1E-6     ,						A_ :	int=1E-2     ,						A_ :	Dict=0.0     ,						A_ :	Any=0.0     ,						**A_ :	Any     ,						):






      '''simple docstring'''




      super().__init__(**A_       )
      _lowerCAmelCase   :					Union[str, Any]        =    image_size
      _lowerCAmelCase   :					List[Any]        =    num_channels
      _lowerCAmelCase   :					Optional[Any]        =    patch_sizes
      _lowerCAmelCase   :					Union[str, Any]        =    strides
      _lowerCAmelCase   :					List[str]        =    hidden_sizes
      _lowerCAmelCase   :					str        =    depths
      _lowerCAmelCase   :					Optional[Any]        =    mlp_ratios
      _lowerCAmelCase   :					Optional[int]        =    hidden_act
      _lowerCAmelCase   :					Tuple        =    initializer_range
      _lowerCAmelCase   :					str        =    layer_norm_eps
      _lowerCAmelCase   :					int        =    layer_scale_init_value
      _lowerCAmelCase   :					int        =    drop_path_rate
      _lowerCAmelCase   :					List[Any]        =    dropout_rate









from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


__UpperCAmelCase    				=     {'configuration_yolos': ['YOLOS_PRETRAINED_CONFIG_ARCHIVE_MAP', 'YolosConfig', 'YolosOnnxConfig']}

try:
  if not is_vision_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __UpperCAmelCase    				=     ['YolosFeatureExtractor']
  __UpperCAmelCase    				=     ['YolosImageProcessor']

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __UpperCAmelCase    				=     [
      'YOLOS_PRETRAINED_MODEL_ARCHIVE_LIST',
      'YolosForObjectDetection',
      'YolosModel',
      'YolosPreTrainedModel',
  ]


if TYPE_CHECKING:
  from .configuration_yolos import YOLOS_PRETRAINED_CONFIG_ARCHIVE_MAP, YolosConfig, YolosOnnxConfig

  try:
    if not is_vision_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .feature_extraction_yolos import YolosFeatureExtractor
    from .image_processing_yolos import YolosImageProcessor

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_yolos import (
        YOLOS_PRETRAINED_MODEL_ARCHIVE_LIST,
        YolosForObjectDetection,
        YolosModel,
        YolosPreTrainedModel,
    )


else:
  import sys

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






