




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


_A     =			logging.get_logger(__name__)


class  A		(  __UpperCAmelCase     ):
		__snake_case									=   'timm_backbone'



		def __init__(     self,	UpperCamelCase__=None,	UpperCamelCase__=3,	UpperCamelCase__=True,	UpperCamelCase__=True,	UpperCamelCase__=None,	**UpperCamelCase__,	):







								"""simple docstring"""



								super().__init__(**UpperCamelCase__   )
								lowerCAmelCase_      			=  backbone
								lowerCAmelCase_      			=  num_channels
								lowerCAmelCase_      			=  features_only
								lowerCAmelCase_      			=  use_pretrained_backbone
								lowerCAmelCase_      			=  True
								lowerCAmelCase_      			=  out_indices if out_indices is not None else (-1,)










from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
						if not (is_transformers_available() and is_torch_available() and is_transformers_version('''>=''', '''4.25.0''')):
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						from ...utils.dummy_torch_and_transformers_objects import UnCLIPImageVariationPipeline, UnCLIPPipeline
else:
						from .pipeline_unclip import UnCLIPPipeline
						from .pipeline_unclip_image_variation import UnCLIPImageVariationPipeline
						from .text_proj import UnCLIPTextProjModel




