mirror of
https://www.modelscope.cn/moonshotai/Kimi-VL-A3B-Thinking-2506.git
synced 2026-04-02 19:13:01 +08:00
remove _validate_images_text_input_order as well (#11)
- remove _validate_images_text_input_order (6bd580e019050d4ca04dc317a70df881628c1cb6)
This commit is contained in:
@ -22,7 +22,7 @@ from typing import List, Union
|
|||||||
|
|
||||||
from transformers.feature_extraction_utils import BatchFeature
|
from transformers.feature_extraction_utils import BatchFeature
|
||||||
from transformers.image_utils import ImageInput
|
from transformers.image_utils import ImageInput
|
||||||
from transformers.processing_utils import ProcessingKwargs, ProcessorMixin, Unpack, _validate_images_text_input_order
|
from transformers.processing_utils import ProcessingKwargs, ProcessorMixin, Unpack
|
||||||
from transformers.tokenization_utils_base import PreTokenizedInput, TextInput
|
from transformers.tokenization_utils_base import PreTokenizedInput, TextInput
|
||||||
from transformers.utils import logging
|
from transformers.utils import logging
|
||||||
|
|
||||||
@ -110,8 +110,6 @@ class KimiVLProcessor(ProcessorMixin):
|
|||||||
if images is None and text is None:
|
if images is None and text is None:
|
||||||
raise ValueError("You have to specify at least one of `images` or `text`.")
|
raise ValueError("You have to specify at least one of `images` or `text`.")
|
||||||
|
|
||||||
# check if images and text inputs are reversed for BC
|
|
||||||
images, text = _validate_images_text_input_order(images, text)
|
|
||||||
|
|
||||||
output_kwargs = self._merge_kwargs(
|
output_kwargs = self._merge_kwargs(
|
||||||
KimiVLProcessorKwargs,
|
KimiVLProcessorKwargs,
|
||||||
|
|||||||
Reference in New Issue
Block a user