wangzhengtao
commited on
Commit
·
8e9d135
1
Parent(s):
cc64525
remove image text order check
Browse files- processing_kimi_vl.py +1 -4
processing_kimi_vl.py
CHANGED
|
@@ -22,7 +22,7 @@ from typing import List, Union
|
|
| 22 |
|
| 23 |
from transformers.feature_extraction_utils import BatchFeature
|
| 24 |
from transformers.image_utils import ImageInput
|
| 25 |
-
from transformers.processing_utils import ProcessingKwargs, ProcessorMixin, Unpack
|
| 26 |
from transformers.tokenization_utils_base import PreTokenizedInput, TextInput
|
| 27 |
from transformers.utils import logging
|
| 28 |
|
|
@@ -110,9 +110,6 @@ class KimiVLProcessor(ProcessorMixin):
|
|
| 110 |
if images is None and text is None:
|
| 111 |
raise ValueError("You have to specify at least one of `images` or `text`.")
|
| 112 |
|
| 113 |
-
# check if images and text inputs are reversed for BC
|
| 114 |
-
images, text = _validate_images_text_input_order(images, text)
|
| 115 |
-
|
| 116 |
output_kwargs = self._merge_kwargs(
|
| 117 |
KimiVLProcessorKwargs,
|
| 118 |
tokenizer_init_kwargs=self.tokenizer.init_kwargs,
|
|
|
|
| 22 |
|
| 23 |
from transformers.feature_extraction_utils import BatchFeature
|
| 24 |
from transformers.image_utils import ImageInput
|
| 25 |
+
from transformers.processing_utils import ProcessingKwargs, ProcessorMixin, Unpack
|
| 26 |
from transformers.tokenization_utils_base import PreTokenizedInput, TextInput
|
| 27 |
from transformers.utils import logging
|
| 28 |
|
|
|
|
| 110 |
if images is None and text is None:
|
| 111 |
raise ValueError("You have to specify at least one of `images` or `text`.")
|
| 112 |
|
|
|
|
|
|
|
|
|
|
| 113 |
output_kwargs = self._merge_kwargs(
|
| 114 |
KimiVLProcessorKwargs,
|
| 115 |
tokenizer_init_kwargs=self.tokenizer.init_kwargs,
|