codingutf8 2021 the ofasys team 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 chineseclip import warnings from utils import logging from imageprocessingchineseclip import chineseclipimageprocessor logger logging getloggername class chineseclipfeatureextractorchineseclipimageprocessor def initself args kwargs none warnings warn the class chineseclipfeatureextractor is deprecated and will be removed in version 5 of transformers please use chineseclipimageprocessor instead futurewarning super initargs kwargs coding utf 8 2021 the ofa sys team 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 chinese clip
import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


logger = logging.get_logger(__name__)


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