






from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


__A					=	logging.get_logger(__name__)

__A					=	{
    "google/bit-50": "https://huggingface.co/google/bit-50/resolve/main/config.json",
}



class 				_A			(     UpperCamelCase					,					UpperCamelCase				):
    """simple docstring"""

    lowerCamelCase	:							Tuple				= 'bit'
    lowerCamelCase	:							List[Any]				= ['preactivation', 'bottleneck']
    lowerCamelCase	:							List[Any]				= ['SAME', 'VALID']



    def __init__(				self      :     Optional[Any] ,     __SCREAMING_SNAKE_CASE      :     Union[str, Any]=3 ,     __SCREAMING_SNAKE_CASE      :     List[str]=64 ,     __SCREAMING_SNAKE_CASE      :     Tuple=[256, 512, 1024, 2048] ,     __SCREAMING_SNAKE_CASE      :     Optional[Any]=[3, 4, 6, 3] ,     __SCREAMING_SNAKE_CASE      :     Optional[Any]="preactivation" ,     __SCREAMING_SNAKE_CASE      :     int="relu" ,     __SCREAMING_SNAKE_CASE      :     Optional[Any]=None ,     __SCREAMING_SNAKE_CASE      :     Tuple=32 ,     __SCREAMING_SNAKE_CASE      :     Tuple=0.0 ,     __SCREAMING_SNAKE_CASE      :     Optional[int]=False ,     __SCREAMING_SNAKE_CASE      :     Union[str, Any]=32 ,     __SCREAMING_SNAKE_CASE      :     List[str]=1 ,     __SCREAMING_SNAKE_CASE      :     Dict=None ,     __SCREAMING_SNAKE_CASE      :     Tuple=None ,     **__SCREAMING_SNAKE_CASE      :     Tuple ,     )      ->							List[str]:
           super().__init__(**__SCREAMING_SNAKE_CASE      )
           if layer_type not in self.layer_types:
                  raise ValueError(f'''layer_type={layer_type} is not one of {",".join(self.layer_types      )}'''      )
           if global_padding is not None:
                  if global_padding.upper() in self.supported_padding:
                         __UpperCAmelCase     				=global_padding.upper()
                  else:
                         raise ValueError(f'''Padding strategy {global_padding} not supported'''      )
           __UpperCAmelCase     				=num_channels
           __UpperCAmelCase     				=embedding_size
           __UpperCAmelCase     				=hidden_sizes
           __UpperCAmelCase     				=depths
           __UpperCAmelCase     				=layer_type
           __UpperCAmelCase     				=hidden_act
           __UpperCAmelCase     				=global_padding
           __UpperCAmelCase     				=num_groups
           __UpperCAmelCase     				=drop_path_rate
           __UpperCAmelCase     				=embedding_dynamic_padding
           __UpperCAmelCase     				=output_stride
           __UpperCAmelCase     				=width_factor

           __UpperCAmelCase     				=["""stem"""] + [f'''stage{idx}''' for idx in range(1 ,     len(__SCREAMING_SNAKE_CASE      ) + 1      )]
           __UpperCAmelCase				, __UpperCAmelCase     				=get_aligned_output_features_output_indices(
               out_features=__SCREAMING_SNAKE_CASE ,     out_indices=__SCREAMING_SNAKE_CASE ,     stage_names=self.stage_names      )






# limitations under the License.

# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from .pipelines import DiffusionPipeline, ImagePipelineOutput  # noqa: F401
from .utils import deprecate


deprecate(
    "pipelines_utils",
    "0.22.0",
    "Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.",
    standard_warn=False,
    stacklevel=3,
)


