



"""simple docstring"""
from ....configuration_utils import PretrainedConfig
from ....utils import logging


__SCREAMING_SNAKE_CASE  :						Union[str, Any]    							=      logging.get_logger(__name__)

__SCREAMING_SNAKE_CASE  :						List[Any]    							=      {
    '''Visual-Attention-Network/van-base''': (
        '''https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'''
    ),
}


class 							lowerCamelCase_(   A__    ):





					'''simple docstring'''



					lowercase__   :       Optional[int]										= 'van'

					def __init__(    self				,       lowerCamelCase__=2_2_4				,       lowerCamelCase__=3				,       lowerCamelCase__=[7, 3, 3, 3]				,       lowerCamelCase__=[4, 2, 2, 2]				,       lowerCamelCase__=[6_4, 1_2_8, 3_2_0, 5_1_2]				,       lowerCamelCase__=[3, 3, 1_2, 3]				,       lowerCamelCase__=[8, 8, 4, 4]				,       lowerCamelCase__="gelu"				,       lowerCamelCase__=0.0_2				,       lowerCamelCase__=1e-6				,       lowerCamelCase__=1e-2				,       lowerCamelCase__=0.0				,       lowerCamelCase__=0.0				,       **lowerCamelCase__				,       ):
									super().__init__(**lowerCamelCase__   )
									_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 ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
			if not (is_transformers_available() and is_torch_available()):
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			from ...utils.dummy_torch_and_transformers_objects import KandinskyPipeline, KandinskyPriorPipeline
else:
			from .pipeline_kandinsky import KandinskyPipeline
			from .pipeline_kandinsky_imgaimg import KandinskyImgaImgPipeline
			from .pipeline_kandinsky_inpaint import KandinskyInpaintPipeline
			from .pipeline_kandinsky_prior import KandinskyPriorPipeline, KandinskyPriorPipelineOutput
			from .text_encoder import MultilingualCLIP
