'''simple docstring'''






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


SCREAMING_SNAKE_CASE_	   =			logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_	   =			{
    'vinvino02/glpn-kitti': 'https://huggingface.co/vinvino02/glpn-kitti/resolve/main/config.json',
    # See all GLPN models at https://huggingface.co/models?filter=glpn
}




class    a (       __lowerCAmelCase				):



  """simple docstring"""
  __lowerCAmelCase				      =					"""glpn"""







  def __init__(							self   ,    snake_case_=3   ,    snake_case_=4   ,    snake_case_=[2, 2, 2, 2]   ,    snake_case_=[8, 4, 2, 1]   ,    snake_case_=[32, 64, 160, 256]   ,    snake_case_=[7, 3, 3, 3]   ,    snake_case_=[4, 2, 2, 2]   ,    snake_case_=[1, 2, 5, 8]   ,    snake_case_=[4, 4, 4, 4]   ,    snake_case_="gelu"   ,    snake_case_=0.0   ,    snake_case_=0.0   ,    snake_case_=0.0_2   ,    snake_case_=0.1   ,    snake_case_=1e-6   ,    snake_case_=64   ,    snake_case_=10   ,    snake_case_=-1   ,    **snake_case_   ,    ):

    '''simple docstring'''







    super().__init__(**snake_case_					)

    __UpperCAmelCase:					Tuple		= num_channels
    __UpperCAmelCase:					Dict		= num_encoder_blocks
    __UpperCAmelCase:					str		= depths
    __UpperCAmelCase:					Optional[int]		= sr_ratios
    __UpperCAmelCase:					Optional[int]		= hidden_sizes
    __UpperCAmelCase:					str		= patch_sizes
    __UpperCAmelCase:					Dict		= strides
    __UpperCAmelCase:					Tuple		= mlp_ratios
    __UpperCAmelCase:					List[str]		= num_attention_heads
    __UpperCAmelCase:					Any		= hidden_act
    __UpperCAmelCase:					Tuple		= hidden_dropout_prob
    __UpperCAmelCase:					Any		= attention_probs_dropout_prob
    __UpperCAmelCase:					Any		= initializer_range
    __UpperCAmelCase:					Dict		= drop_path_rate
    __UpperCAmelCase:					Any		= layer_norm_eps
    __UpperCAmelCase:					int		= decoder_hidden_size
    __UpperCAmelCase:					List[str]		= max_depth
    __UpperCAmelCase:					Optional[Any]		= head_in_index
'''simple docstring'''






def  UpperCamelCase__					(					_lowercase    :				int     )							->	int:

  if not isinstance(_lowercase   ,    _lowercase     ):
    __UpperCAmelCase:					List[str]		= F'''Input value of [number={number}] must be an integer'''
    raise TypeError(_lowercase     )

  if number < 1:
    __UpperCAmelCase:					Dict		= F'''Input value of [number={number}] must be > 0'''
    raise ValueError(_lowercase     )

  __UpperCAmelCase:					int		= 1

  for i in range(1   ,    _lowercase     ):
    current_number *= 4 * i - 2
    current_number //= i + 1

  return current_number


if __name__ == "__main__":
    import doctest

    doctest.testmod()