


'''simple docstring'''



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__lowercase     :						List[str]	=     {
    'configuration_upernet': ['UperNetConfig'],
}

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__lowercase     :						int	=     [
							    'UperNetForSemanticSegmentation',
							    'UperNetPreTrainedModel',
							]


if TYPE_CHECKING:
							from .configuration_upernet import UperNetConfig

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_upernet import UperNetForSemanticSegmentation, UperNetPreTrainedModel


else:
							import sys

							__lowercase     :						Tuple	=     _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)







'''simple docstring'''



from .imports import is_rich_available


if is_rich_available():
	from rich.traceback import install

	install(show_locals=False)

else:
	raise ModuleNotFoundError('To use the rich extension, install rich with `pip install rich`')



