



"""simple docstring"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


UpperCAmelCase						:		str			= logging.get_logger(__name__)

UpperCAmelCase						:		List[str]			= {
    "microsoft/focalnet-tiny": "https://huggingface.co/microsoft/focalnet-tiny/resolve/main/config.json",
}


class    SCREAMING_SNAKE_CASE__ (							__UpperCAmelCase      ,  __UpperCAmelCase   ):
    lowercase__      =   "focalnet"

    def __init__(				self			:				List[Any] ,  lowerCAmelCase_			:				int=2_2_4 ,  lowerCAmelCase_			:				Optional[Any]=4 ,  lowerCAmelCase_			:				List[str]=3 ,  lowerCAmelCase_			:				str=9_6 ,  lowerCAmelCase_			:				Optional[Any]=False ,  lowerCAmelCase_			:				Union[str, Any]=[1_9_2, 3_8_4, 7_6_8, 7_6_8] ,  lowerCAmelCase_			:				Optional[int]=[2, 2, 6, 2] ,  lowerCAmelCase_			:				Optional[int]=[2, 2, 2, 2] ,  lowerCAmelCase_			:				Dict=[3, 3, 3, 3] ,  lowerCAmelCase_			:				int="gelu" ,  lowerCAmelCase_			:				List[Any]=4.0 ,  lowerCAmelCase_			:				Optional[int]=0.0 ,  lowerCAmelCase_			:				Union[str, Any]=0.1 ,  lowerCAmelCase_			:				Union[str, Any]=False ,  lowerCAmelCase_			:				Union[str, Any]=1E-4 ,  lowerCAmelCase_			:				Any=False ,  lowerCAmelCase_			:				int=False ,  lowerCAmelCase_			:				List[Any]=False ,  lowerCAmelCase_			:				Union[str, Any]=0.02 ,  lowerCAmelCase_			:				Tuple=1E-5 ,  lowerCAmelCase_			:				int=3_2 ,  lowerCAmelCase_			:				List[str]=None ,  lowerCAmelCase_			:				Dict=None ,  **lowerCAmelCase_			:				Optional[Any] ,  ):







      """simple docstring"""







      super().__init__(**lowerCAmelCase_)

      lowercase_								= image_size
      lowercase_								= patch_size
      lowercase_								= num_channels
      lowercase_								= embed_dim
      lowercase_								= use_conv_embed
      lowercase_								= hidden_sizes
      lowercase_								= depths
      lowercase_								= focal_levels
      lowercase_								= focal_windows
      lowercase_								= hidden_act
      lowercase_								= mlp_ratio
      lowercase_								= hidden_dropout_prob
      lowercase_								= drop_path_rate
      lowercase_								= use_layerscale
      lowercase_								= layerscale_value
      lowercase_								= use_post_layernorm
      lowercase_								= use_post_layernorm_in_modulation
      lowercase_								= normalize_modulator
      lowercase_								= initializer_range
      lowercase_								= layer_norm_eps
      lowercase_								= encoder_stride
      lowercase_								= ["""stem"""] + [F'''stage{idx}''' for idx in range(1 ,  len(self.depths) + 1)]
      lowercase_					,    lowercase_								= get_aligned_output_features_output_indices(
          out_features=lowerCAmelCase_ ,  out_indices=lowerCAmelCase_ ,  stage_names=self.stage_names)






"""simple docstring"""
from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


UpperCAmelCase						:		Union[str, Any]			= datasets.utils.logging.get_logger(__name__)


class    SCREAMING_SNAKE_CASE__ (							folder_based_builder.FolderBasedBuilderConfig   ):
    lowercase__      =   None
    lowercase__      =   None







class    SCREAMING_SNAKE_CASE__ (							folder_based_builder.FolderBasedBuilder   ):
    lowercase__      =   datasets.Audio()
    lowercase__      =   "audio"
    lowercase__      =   AudioFolderConfig
    lowercase__      =   42  # definition at the bottom of the script
    lowercase__      =   AudioClassification(audio_column="audio"      ,  label_column="label"   )







UpperCAmelCase						:		Tuple			= [
    ".aiff",
    ".au",
    ".avr",
    ".caf",
    ".flac",
    ".htk",
    ".svx",
    ".mat4",
    ".mat5",
    ".mpc2k",
    ".ogg",
    ".paf",
    ".pvf",
    ".raw",
    ".rf64",
    ".sd2",
    ".sds",
    ".ircam",
    ".voc",
    ".w64",
    ".wav",
    ".nist",
    ".wavex",
    ".wve",
    ".xi",
    ".mp3",
    ".opus",
]
UpperCAmelCase						:		Any			= AUDIO_EXTENSIONS

