





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


UpperCamelCase__											= logging.get_logger(__name__)

UpperCamelCase__											= {
    "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        __SCREAMING_SNAKE_CASE					(     _a       ):
							snake_case     :      List[str]						     =       """glpn"""






							def __init__(						self  , __lowerCAmelCase=3  , __lowerCAmelCase=4  , __lowerCAmelCase=[2, 2, 2, 2]  , __lowerCAmelCase=[8, 4, 2, 1]  , __lowerCAmelCase=[32, 64, 160, 256]  , __lowerCAmelCase=[7, 3, 3, 3]  , __lowerCAmelCase=[4, 2, 2, 2]  , __lowerCAmelCase=[1, 2, 5, 8]  , __lowerCAmelCase=[4, 4, 4, 4]  , __lowerCAmelCase="gelu"  , __lowerCAmelCase=0.0  , __lowerCAmelCase=0.0  , __lowerCAmelCase=0.02  , __lowerCAmelCase=0.1  , __lowerCAmelCase=1E-6  , __lowerCAmelCase=64  , __lowerCAmelCase=10  , __lowerCAmelCase=-1  , **__lowerCAmelCase  , ):
														super().__init__(**__lowerCAmelCase  )

														UpperCamelCase__				     =			num_channels
														UpperCamelCase__				     =			num_encoder_blocks
														UpperCamelCase__				     =			depths
														UpperCamelCase__				     =			sr_ratios
														UpperCamelCase__				     =			hidden_sizes
														UpperCamelCase__				     =			patch_sizes
														UpperCamelCase__				     =			strides
														UpperCamelCase__				     =			mlp_ratios
														UpperCamelCase__				     =			num_attention_heads
														UpperCamelCase__				     =			hidden_act
														UpperCamelCase__				     =			hidden_dropout_prob
														UpperCamelCase__				     =			attention_probs_dropout_prob
														UpperCamelCase__				     =			initializer_range
														UpperCamelCase__				     =			drop_path_rate
														UpperCamelCase__				     =			layer_norm_eps
														UpperCamelCase__				     =			decoder_hidden_size
														UpperCamelCase__				     =			max_depth
														UpperCamelCase__				     =			head_in_index








from typing import Any





def     _UpperCamelCase     (a__   :list       ):






							"""simple docstring"""





							if not input_list:
														return []
							UpperCamelCase__				     =			[input_list.count(a__       ) for value in input_list]
							UpperCamelCase__				     =			max(a__       )  # Gets the maximum count in the input list.
							# Gets values of modes
							return sorted({input_list[i] for i, value in enumerate(a__       ) if value == y}       )


if __name__ == "__main__":
					import doctest

					doctest.testmod()




