





"""simple docstring"""





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


lowerCAmelCase__     			=						logging.get_logger(__name__)

lowerCAmelCase__     			=						{
    '''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        _lowerCamelCase      (       _lowercase ):
						UpperCAmelCase_ =			"cvt"


						def __init__(self   ,							__a=3   ,							__a=[7, 3, 3]   ,							__a=[4, 2, 2]   ,							__a=[2, 1, 1]   ,							__a=[64, 1_92, 3_84]   ,							__a=[1, 3, 6]   ,							__a=[1, 2, 10]   ,							__a=[4.0, 4.0, 4.0]   ,							__a=[0.0, 0.0, 0.0]   ,							__a=[0.0, 0.0, 0.0]   ,							__a=[0.0, 0.0, 0.1]   ,							__a=[True, True, True]   ,							__a=[False, False, True]   ,							__a=["dw_bn", "dw_bn", "dw_bn"]   ,							__a=[3, 3, 3]   ,							__a=[1, 1, 1]   ,							__a=[2, 2, 2]   ,							__a=[1, 1, 1]   ,							__a=[1, 1, 1]   ,							__a=0.02   ,							__a=1e-1_2   ,							**__a   ,							) ->   str:
								super().__init__(**__a		)
								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"""





import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


lowerCAmelCase__     			=			HUGGINGFACE_HUB_CACHE


lowerCAmelCase__     			=			'''config.json'''
lowerCAmelCase__     			=			'''diffusion_pytorch_model.bin'''
lowerCAmelCase__     			=			'''diffusion_flax_model.msgpack'''
lowerCAmelCase__     			=			'''model.onnx'''
lowerCAmelCase__     			=			'''diffusion_pytorch_model.safetensors'''
lowerCAmelCase__     			=			'''weights.pb'''
lowerCAmelCase__     			=			'''https://huggingface.co'''
lowerCAmelCase__     			=			default_cache_path
lowerCAmelCase__     			=			'''diffusers_modules'''
lowerCAmelCase__     			=			os.getenv('''HF_MODULES_CACHE''', os.path.join(hf_cache_home, '''modules'''))
lowerCAmelCase__     			=			['''fp16''', '''non-ema''']
lowerCAmelCase__     			=			'''.self_attn'''






