



from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


__UpperCAmelCase			  =			logging.get_logger(__name__)

__UpperCAmelCase			  =			{
    '''facebook/data2vec-vision-base-ft''': (
        '''https://huggingface.co/facebook/data2vec-vision-base-ft/resolve/main/config.json'''
    ),
}



class 							lowerCAmelCase_						(    a__				):
       UpperCAmelCase__							:   int  	=    "data2vec-vision"
       def __init__(     self,     SCREAMING_SNAKE_CASE_=768,     SCREAMING_SNAKE_CASE_=12,     SCREAMING_SNAKE_CASE_=12,     SCREAMING_SNAKE_CASE_=3072,     SCREAMING_SNAKE_CASE_="gelu",     SCREAMING_SNAKE_CASE_=0.0,     SCREAMING_SNAKE_CASE_=0.0,     SCREAMING_SNAKE_CASE_=0.02,     SCREAMING_SNAKE_CASE_=1e-12,     SCREAMING_SNAKE_CASE_=224,     SCREAMING_SNAKE_CASE_=16,     SCREAMING_SNAKE_CASE_=3,     SCREAMING_SNAKE_CASE_=False,     SCREAMING_SNAKE_CASE_=False,     SCREAMING_SNAKE_CASE_=False,     SCREAMING_SNAKE_CASE_=False,     SCREAMING_SNAKE_CASE_=0.1,     SCREAMING_SNAKE_CASE_=0.1,     SCREAMING_SNAKE_CASE_=True,     SCREAMING_SNAKE_CASE_=[3, 5, 7, 11],     SCREAMING_SNAKE_CASE_=[1, 2, 3, 6],     SCREAMING_SNAKE_CASE_=True,     SCREAMING_SNAKE_CASE_=0.4,     SCREAMING_SNAKE_CASE_=256,     SCREAMING_SNAKE_CASE_=1,     SCREAMING_SNAKE_CASE_=False,     SCREAMING_SNAKE_CASE_=255,     **SCREAMING_SNAKE_CASE_,     )	->						Dict:
          super().__init__(**SCREAMING_SNAKE_CASE_			)

          UpperCamelCase       :    List[str]		      =      hidden_size
          UpperCamelCase       :    Dict		      =      num_hidden_layers
          UpperCamelCase       :    List[Any]		      =      num_attention_heads
          UpperCamelCase       :    Optional[Any]		      =      intermediate_size
          UpperCamelCase       :    Union[str, Any]		      =      hidden_act
          UpperCamelCase       :    int		      =      hidden_dropout_prob
          UpperCamelCase       :    Union[str, Any]		      =      attention_probs_dropout_prob
          UpperCamelCase       :    List[Any]		      =      initializer_range
          UpperCamelCase       :    Any		      =      layer_norm_eps

          UpperCamelCase       :    List[Any]		      =      image_size
          UpperCamelCase       :    int		      =      patch_size
          UpperCamelCase       :    Tuple		      =      num_channels
          UpperCamelCase       :    str		      =      use_mask_token
          UpperCamelCase       :    Union[str, Any]		      =      use_absolute_position_embeddings
          UpperCamelCase       :    int		      =      use_relative_position_bias
          UpperCamelCase       :    Optional[int]		      =      use_shared_relative_position_bias
          UpperCamelCase       :    int		      =      layer_scale_init_value
          UpperCamelCase       :    List[Any]		      =      drop_path_rate
          UpperCamelCase       :    str		      =      use_mean_pooling
          # decode head attributes (semantic segmentation)
          UpperCamelCase       :    List[str]		      =      out_indices
          UpperCamelCase       :    Union[str, Any]		      =      pool_scales
          # auxiliary head attributes (semantic segmentation)
          UpperCamelCase       :    List[str]		      =      use_auxiliary_head
          UpperCamelCase       :    Any		      =      auxiliary_loss_weight
          UpperCamelCase       :    Any		      =      auxiliary_channels
          UpperCamelCase       :    Tuple		      =      auxiliary_num_convs
          UpperCamelCase       :    str		      =      auxiliary_concat_input
          UpperCamelCase       :    Optional[int]		      =      semantic_loss_ignore_index






class 							lowerCAmelCase_						(    a__				):
       UpperCAmelCase__							:   Any  	=    version.parse("1.11"				)
       @property
       def    snake_case_			(     self			)	->						Mapping[str, Mapping[int, str]]:
          return OrderedDict(
              [
                  ('pixel_values', {0: 'batch', 1: 'num_channels', 2: 'height', 3: 'width'}),
              ]			)






       @property
       def    snake_case_			(     self			)	->						float:
          return 1e-4










'''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



