"""simple docstring"""






from typing import Callable, Optional

from .. import Features
from ..packaged_modules.generator.generator import Generator
from .abc import AbstractDatasetInputStream





class 				_A		( lowerCAmelCase			):

      def __init__(		self	, __lowerCAmelCase	, __lowerCAmelCase = None	, __lowerCAmelCase = None	, __lowerCAmelCase = False	, __lowerCAmelCase = False	, __lowerCAmelCase = None	, __lowerCAmelCase = None	, **__lowerCAmelCase	, ):







            """simple docstring"""



            super().__init__(
                features=_lowerCAmelCase	, cache_dir=_lowerCAmelCase	, keep_in_memory=_lowerCAmelCase	, streaming=_lowerCAmelCase	, num_proc=_lowerCAmelCase	, **_lowerCAmelCase	, )
            lowercase														=			Generator(
                cache_dir=_lowerCAmelCase	, features=_lowerCAmelCase	, generator=_lowerCAmelCase	, gen_kwargs=_lowerCAmelCase	, **_lowerCAmelCase	, )







      def        A__ (		self		):







            """simple docstring"""



            if self.streaming:
                  lowercase														=			self.builder.as_streaming_dataset(split="""train"""		)
            # Build regular (map-style) dataset
            else:
                  lowercase														=			None
                  lowercase														=			None
                  lowercase														=			None
                  lowercase														=			None

                  self.builder.download_and_prepare(
                      download_config=_lowerCAmelCase	, download_mode=_lowerCAmelCase	, verification_mode=_lowerCAmelCase	, base_path=_lowerCAmelCase	, num_proc=self.num_proc	, )
                  lowercase														=			self.builder.as_dataset(
                      split="""train"""	, verification_mode=_lowerCAmelCase	, in_memory=self.keep_in_memory		)
            return dataset


"""simple docstring"""






import warnings

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


__lowerCAmelCase					: List[str]        =logging.get_logger(__name__)





class 				_A		( lowerCAmelCase			):

      def __init__(		self	, *__lowerCAmelCase	, **__lowerCAmelCase		):







            """simple docstring"""



            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		)



