


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


_SCREAMING_SNAKE_CASE     :					str      =       logging.get_logger(__name__)

class     A__   (       snake_case__      ):







    """simple docstring"""

    __magic_name__         =						'timm_backbone'
    def __init__(			self     ,   __snake_case=None     ,   __snake_case=3     ,   __snake_case=True     ,   __snake_case=True     ,   __snake_case=None     ,   **__snake_case     ,   ):
         super().__init__(**__snake_case       )
         snake_case											=							backbone
         snake_case											=							num_channels
         snake_case											=							features_only
         snake_case											=							use_pretrained_backbone
         snake_case											=							True
         snake_case											=							out_indices if out_indices is not None else (-1,)








import os
from distutils.util import strtobool
def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_							):



     """simple docstring"""






     for e in env_keys:
          snake_case											=							int(os.environ.get(UpperCamelCase_				,-1							)							)
          if val >= 0:
               return val
     return default
def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_=False							):



     """simple docstring"""






     snake_case											=							os.environ.get(UpperCamelCase_				,str(UpperCamelCase_							)							)
     return strtobool(UpperCamelCase_							) == 1  # As its name indicates `strtobool` actually returns an int...

def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_="no"							):



     """simple docstring"""






     snake_case											=							os.environ.get(UpperCamelCase_				,str(UpperCamelCase_							)							)
     return value




