
"""simple docstring"""





from .imports import is_tqdm_available


if is_tqdm_available():
							from tqdm.auto import tqdm as _tqdm

from ..state import PartialState



def 						_lowerCAmelCase				(				UpperCamelCase_ = True  ,				*UpperCamelCase_  ,				**UpperCamelCase_				):
		if not is_tqdm_available():
				raise ImportError("""Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."""				)
		__SCREAMING_SNAKE_CASE            = False
		if main_process_only:
				__SCREAMING_SNAKE_CASE            = PartialState().local_process_index == 0
		return _tqdm(*UpperCamelCase_  ,				**UpperCamelCase_  ,				disable=UpperCamelCase_				)






"""simple docstring"""





import warnings

from ...utils import logging
from .image_processing_yolos import YolosImageProcessor


__magic_name__       =			logging.get_logger(__name__)
class 						SCREAMING_SNAKE_CASE_ (						__a ):




		"""simple docstring"""





		def __init__(     self							,  *lowerCAmelCase__							,  **lowerCAmelCase__):
				warnings.warn(
				    """The class YolosFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
				    """ use YolosImageProcessor instead."""							,  lowerCAmelCase__							,  )
				super().__init__(*lowerCAmelCase__							,  **lowerCAmelCase__)




