"""simple docstring"""






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


__lowerCAmelCase					: Dict        =logging.get_logger(__name__)

__lowerCAmelCase					: int        ={
    """facebook/convnextv2-tiny-1k-224""": """https://huggingface.co/facebook/convnextv2-tiny-1k-224/resolve/main/config.json""",
}





class 				_A		( lowerCAmelCase						,					lowerCAmelCase			):
      snake_case__    :     Optional[Any]													=			'convnextv2'

      def __init__(		self	, __lowerCAmelCase=3	, __lowerCAmelCase=4	, __lowerCAmelCase=4	, __lowerCAmelCase=None	, __lowerCAmelCase=None	, __lowerCAmelCase="gelu"	, __lowerCAmelCase=0.0_2	, __lowerCAmelCase=1E-12	, __lowerCAmelCase=0.0	, __lowerCAmelCase=224	, __lowerCAmelCase=None	, __lowerCAmelCase=None	, **__lowerCAmelCase	, ):







            """simple docstring"""



            super().__init__(**__lowerCAmelCase		)

            lowercase														=			num_channels
            lowercase														=			patch_size
            lowercase														=			num_stages
            lowercase														=			[96, 192, 384, 768] if hidden_sizes is None else hidden_sizes
            lowercase														=			[3, 3, 9, 3] if depths is None else depths
            lowercase														=			hidden_act
            lowercase														=			initializer_range
            lowercase														=			layer_norm_eps
            lowercase														=			drop_path_rate
            lowercase														=			image_size
            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"""






import warnings

from ...utils import logging
from .image_processing_yolos import YolosImageProcessor


__lowerCAmelCase					: List[str]        =logging.get_logger(__name__)





class 				_A		( lowerCAmelCase			):

      def __init__(		self	, *__lowerCAmelCase	, **__lowerCAmelCase		):







            """simple docstring"""



            warnings.warn(
                """The class YolosFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
                """ use YolosImageProcessor instead."""	, __lowerCAmelCase	, )
            super().__init__(*__lowerCAmelCase	, **__lowerCAmelCase		)



