codingutf8 2022 meta platforms s and the huggingface team licensed under the apache license version 2 0 the license you may not use this file except in compliance with the license you may obtain a copy of the license at http www apache orglicenseslicense2 0 unless required by applicable law or agreed to in writing software distributed under the license is distributed on an as is basis without warranties or conditions of any kind either express or implied see the license for the specific language governing permissions and limitations under the license feature extractor class for flava import warnings from utils import logging from imageprocessingflava import flavaimageprocessor logger logging getloggername class flavafeatureextractorflavaimageprocessor def initself args kwargs none warnings warn the class flavafeatureextractor is deprecated and will be removed in version 5 of transformers please use flavaimageprocessor instead futurewarning super initargs kwargs coding utf 8 2022 meta platforms s and the huggingface team licensed under the apache license version 2 0 the license you may not use this file except in compliance with the license you may obtain a copy of the license at http www apache org licenses license 2 0 unless required by applicable law or agreed to in writing software distributed under the license is distributed on an as is basis without warranties or conditions of any kind either express or implied see the license for the specific language governing permissions and limitations under the license feature extractor class for flava
import warnings

from ...utils import logging
from .image_processing_flava import FlavaImageProcessor


logger = logging.get_logger(__name__)


class FlavaFeatureExtractor(FlavaImageProcessor):
    def __init__(self, *args, **kwargs) -> None:
        warnings.warn(
            "The class FlavaFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
            " use FlavaImageProcessor instead.",
            FutureWarning,
        )
        super().__init__(*args, **kwargs)