


'''simple docstring'''

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


a_  :				int						= logging.get_logger(__name__)

a_  :				Optional[int]						= {
    """Visual-Attention-Network/van-base""": (
        """https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json"""
    ),
}





class      snake_case    (    lowercase			):





  """simple docstring"""




  _lowerCamelCase		    =  "van"






  def __init__(    self			,  UpperCamelCase=224			,  UpperCamelCase=3			,  UpperCamelCase=[7, 3, 3, 3]			,  UpperCamelCase=[4, 2, 2, 2]			,  UpperCamelCase=[64, 128, 320, 512]			,  UpperCamelCase=[3, 3, 12, 3]			,  UpperCamelCase=[8, 8, 4, 4]			,  UpperCamelCase="gelu"			,  UpperCamelCase=0.02			,  UpperCamelCase=1e-6			,  UpperCamelCase=1e-2			,  UpperCamelCase=0.0			,  UpperCamelCase=0.0			,  **UpperCamelCase			,  ):







   """simple docstring"""
   super().__init__(**UpperCamelCase     )
   lowerCamelCase_      =  image_size
   lowerCamelCase_      =  num_channels
   lowerCamelCase_      =  patch_sizes
   lowerCamelCase_      =  strides
   lowerCamelCase_      =  hidden_sizes
   lowerCamelCase_      =  depths
   lowerCamelCase_      =  mlp_ratios
   lowerCamelCase_      =  hidden_act
   lowerCamelCase_      =  initializer_range
   lowerCamelCase_      =  layer_norm_eps
   lowerCamelCase_      =  layer_scale_init_value
   lowerCamelCase_      =  drop_path_rate
   lowerCamelCase_      =  dropout_rate








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

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


__a      =				{
    "configuration_mask2former": [
        "MASK2FORMER_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "Mask2FormerConfig",
    ],
}

try:
						if not is_vision_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__a      =				["Mask2FormerImageProcessor"]

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						__a      =				[
						    "MASK2FORMER_PRETRAINED_MODEL_ARCHIVE_LIST",
						    "Mask2FormerForUniversalSegmentation",
						    "Mask2FormerModel",
						    "Mask2FormerPreTrainedModel",
						]

if TYPE_CHECKING:
						from .configuration_maskaformer import MASK2FORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, MaskaFormerConfig

						try:
												if not is_vision_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .image_processing_maskaformer import MaskaFormerImageProcessor

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_maskaformer import (
												    MASK2FORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
												    MaskaFormerForUniversalSegmentation,
												    MaskaFormerModel,
												    MaskaFormerPreTrainedModel,
												)


else:
						import sys

						__a      =				_LazyModule(__name__, globals()["__file__"], _import_structure)
