



"""simple docstring"""





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


lowercase  							=					logging.get_logger(__name__)

lowercase  							=					{
    '''microsoft/cvt-13''': '''https://huggingface.co/microsoft/cvt-13/resolve/main/config.json''',
    # See all Cvt models at https://huggingface.co/models?filter=cvt
}




class 			lowercase__			(      A    ):
							'''simple docstring'''







							_UpperCAmelCase      				=					'''cvt'''






							def __init__(  self	,       snake_case=3	,       snake_case=[7, 3, 3]	,       snake_case=[4, 2, 2]	,       snake_case=[2, 1, 1]	,       snake_case=[64, 192, 384]	,       snake_case=[1, 3, 6]	,       snake_case=[1, 2, 10]	,       snake_case=[4.0, 4.0, 4.0]	,       snake_case=[0.0, 0.0, 0.0]	,       snake_case=[0.0, 0.0, 0.0]	,       snake_case=[0.0, 0.0, 0.1]	,       snake_case=[True, True, True]	,       snake_case=[False, False, True]	,       snake_case=["dw_bn", "dw_bn", "dw_bn"]	,       snake_case=[3, 3, 3]	,       snake_case=[1, 1, 1]	,       snake_case=[2, 2, 2]	,       snake_case=[1, 1, 1]	,       snake_case=[1, 1, 1]	,       snake_case=0.02	,       snake_case=1E-12	,       **snake_case	,       )			->							Optional[Any]:
									super().__init__(**snake_case						)
									_UpperCAmelCase							 =		num_channels
									_UpperCAmelCase							 =		patch_sizes
									_UpperCAmelCase							 =		patch_stride
									_UpperCAmelCase							 =		patch_padding
									_UpperCAmelCase							 =		embed_dim
									_UpperCAmelCase							 =		num_heads
									_UpperCAmelCase							 =		depth
									_UpperCAmelCase							 =		mlp_ratio
									_UpperCAmelCase							 =		attention_drop_rate
									_UpperCAmelCase							 =		drop_rate
									_UpperCAmelCase							 =		drop_path_rate
									_UpperCAmelCase							 =		qkv_bias
									_UpperCAmelCase							 =		cls_token
									_UpperCAmelCase							 =		qkv_projection_method
									_UpperCAmelCase							 =		kernel_qkv
									_UpperCAmelCase							 =		padding_kv
									_UpperCAmelCase							 =		stride_kv
									_UpperCAmelCase							 =		padding_q
									_UpperCAmelCase							 =		stride_q
									_UpperCAmelCase							 =		initializer_range
									_UpperCAmelCase							 =		layer_norm_eps







"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowercase  							=					{
    '''configuration_clipseg''': [
        '''CLIPSEG_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''CLIPSegConfig''',
        '''CLIPSegTextConfig''',
        '''CLIPSegVisionConfig''',
    ],
    '''processing_clipseg''': ['''CLIPSegProcessor'''],
}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowercase  							=					[
					    '''CLIPSEG_PRETRAINED_MODEL_ARCHIVE_LIST''',
					    '''CLIPSegModel''',
					    '''CLIPSegPreTrainedModel''',
					    '''CLIPSegTextModel''',
					    '''CLIPSegVisionModel''',
					    '''CLIPSegForImageSegmentation''',
					]

if TYPE_CHECKING:
					from .configuration_clipseg import (
					    CLIPSEG_PRETRAINED_CONFIG_ARCHIVE_MAP,
					    CLIPSegConfig,
					    CLIPSegTextConfig,
					    CLIPSegVisionConfig,
					)
					from .processing_clipseg import CLIPSegProcessor

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_clipseg import (
										    CLIPSEG_PRETRAINED_MODEL_ARCHIVE_LIST,
										    CLIPSegForImageSegmentation,
										    CLIPSegModel,
										    CLIPSegPreTrainedModel,
										    CLIPSegTextModel,
										    CLIPSegVisionModel,
										)

else:
					import sys

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


