






"""simple docstring"""





import copy

from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ..auto.configuration_auto import CONFIG_MAPPING


UpperCamelCase_	:				Optional[int]										= logging.get_logger(__name__)


class      _lowercase (     lowerCAmelCase						):
      _a   :     Optional[Any]								=   '''upernet'''


      def __init__(    self				:	Optional[int]							,   a				:	str=None							,   a				:	Optional[Any]=5_1_2							,   a				:	List[str]=0.0_2							,   a				:	str=[1, 2, 3, 6]							,   a				:	int=True							,   a				:	Any=0.4							,   a				:	List[str]=3_8_4							,   a				:	List[Any]=2_5_6							,   a				:	List[str]=1							,   a				:	Optional[Any]=False							,   a				:	Optional[int]=2_5_5							,   **a				:	Optional[Any]							,   ):





            """simple docstring"""







            super().__init__(**a						)

            if backbone_config is None:
                  logger.info('''`backbone_config` is `None`. Initializing the config with the default `ResNet` backbone.'''						)
                  __snake_case      :    List[Any]  			=CONFIG_MAPPING['''resnet'''](out_features=['''stage1''', '''stage2''', '''stage3''', '''stage4''']						)
            elif isinstance(a							,   a						):
                  __snake_case      :    Tuple  			=backbone_config.get('''model_type'''						)
                  __snake_case      :    List[Any]  			=CONFIG_MAPPING[backbone_model_type]
                  __snake_case      :    Optional[int]  			=config_class.from_dict(a						)

            __snake_case      :    str  			=backbone_config
            __snake_case      :    Any  			=hidden_size
            __snake_case      :    Any  			=initializer_range
            __snake_case      :    List[Any]  			=pool_scales
            __snake_case      :    str  			=use_auxiliary_head
            __snake_case      :    List[Any]  			=auxiliary_loss_weight
            __snake_case      :    int  			=auxiliary_in_channels
            __snake_case      :    Optional[Any]  			=auxiliary_channels
            __snake_case      :    List[Any]  			=auxiliary_num_convs
            __snake_case      :    Any  			=auxiliary_concat_input
            __snake_case      :    int  			=loss_ignore_index







      def _UpperCamelCase						(    self				:	Union[str, Any]						):





            """simple docstring"""







            __snake_case      :    Optional[Any]  			=copy.deepcopy(self.__dict__						)
            __snake_case      :    Tuple  			=self.backbone_config.to_dict()
            __snake_case      :    Any  			=self.__class__.model_type
            return output










"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import _LazyModule


UpperCamelCase_	:				Union[str, Any]										= {"""tokenization_wav2vec2_phoneme""": ["""Wav2Vec2PhonemeCTCTokenizer"""]}


if TYPE_CHECKING:
    from .tokenization_wavaveca_phoneme import WavaVecaPhonemeCTCTokenizer
else:
    import sys

    UpperCamelCase_	:				List[Any]										= _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)


