
'''simple docstring'''

def        UpperCAmelCase_ (  lowerCamelCase_      ,			lowerCamelCase_ = False			):







 """simple docstring"""


 if not isinstance(lowerCamelCase_      ,			lowerCamelCase_			):
  lowerCAmelCase__     :   str     		=	f'''Expected string as input, found {type(lowerCamelCase_			)}'''
  raise ValueError(lowerCamelCase_			)
 if not isinstance(lowerCamelCase_      ,			lowerCamelCase_			):
  lowerCAmelCase__     :   List[Any]     		=	f'''Expected boolean as use_pascal parameter, found {type(lowerCamelCase_			)}'''
  raise ValueError(lowerCamelCase_			)

 lowerCAmelCase__     :   Optional[int]     		=	input_str.split("_"			)

 lowerCAmelCase__     :   int     		=	0 if use_pascal else 1

 lowerCAmelCase__     :   List[str]     		=	words[start_index:]

 lowerCAmelCase__     :   Dict     		=	[word[0].upper() + word[1:] for word in words_to_capitalize]

 lowerCAmelCase__     :   Tuple     		=	"" if use_pascal else words[0]

 return "".join([initial_word, *capitalized_words]			)


if __name__ == "__main__":
     from doctest import testmod

     testmod()







'''simple docstring'''

from ....configuration_utils import PretrainedConfig
from ....utils import logging


snake_case									=    logging.get_logger(__name__)

snake_case									=    {
    """Visual-Attention-Network/van-base""": (
        """https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json"""
    ),
}




class    lowerCAmelCase       (     UpperCamelCase_  ):
 A_				:				Tuple	=			"""van"""


 def __init__(    self  : List[Any]			,							a__  : Dict=224			,							a__  : Dict=3			,							a__  : Union[str, Any]=[7, 3, 3, 3]			,							a__  : Optional[Any]=[4, 2, 2, 2]			,							a__  : Optional[Any]=[64, 128, 320, 512]			,							a__  : List[str]=[3, 3, 12, 3]			,							a__  : Any=[8, 8, 4, 4]			,							a__  : Optional[int]="gelu"			,							a__  : List[Any]=0.02			,							a__  : Tuple=1e-6			,							a__  : List[str]=1e-2			,							a__  : List[str]=0.0			,							a__  : List[Any]=0.0			,							**a__  : Tuple			,							):
  '''simple docstring'''

  super().__init__(**a__    )
  lowerCAmelCase__     :   Any     		=	image_size
  lowerCAmelCase__     :   Tuple     		=	num_channels
  lowerCAmelCase__     :   List[Any]     		=	patch_sizes
  lowerCAmelCase__     :   Dict     		=	strides
  lowerCAmelCase__     :   List[str]     		=	hidden_sizes
  lowerCAmelCase__     :   Union[str, Any]     		=	depths
  lowerCAmelCase__     :   Tuple     		=	mlp_ratios
  lowerCAmelCase__     :   Optional[Any]     		=	hidden_act
  lowerCAmelCase__     :   Dict     		=	initializer_range
  lowerCAmelCase__     :   int     		=	layer_norm_eps
  lowerCAmelCase__     :   Optional[Any]     		=	layer_scale_init_value
  lowerCAmelCase__     :   List[str]     		=	drop_path_rate
  lowerCAmelCase__     :   Any     		=	dropout_rate





