codingutf8 2022 the huggingface inc 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 owlvit import warnings from utils import logging from imageprocessingowlvit import owlvitimageprocessor logger logging getloggername class owlvitfeatureextractorowlvitimageprocessor def initself args kwargs none warnings warn the class owlvitfeatureextractor is deprecated and will be removed in version 5 of transformers please use owlvitimageprocessor instead futurewarning super initargs kwargs coding utf 8 2022 the huggingface inc 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 owlvit
import warnings

from ...utils import logging
from .image_processing_owlvit import OwlViTImageProcessor


logger = logging.get_logger(__name__)


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