|
23 | 23 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
24 | 24 | # See the License for the specific language governing permissions and |
25 | 25 | # limitations under the License. |
26 | | -from typing import List, Union |
| 26 | +from typing import List, Optional, Union |
27 | 27 |
|
28 | 28 | from ...feature_extraction_utils import BatchFeature |
29 | 29 | from ...image_utils import ImageInput, VideoInput |
30 | | -from ...processing_utils import ProcessingKwargs, ProcessorMixin, Unpack, VideosKwargs |
| 30 | +from ...processing_utils import ImagesKwargs, ProcessingKwargs, ProcessorMixin, Unpack, VideosKwargs |
31 | 31 | from ...tokenization_utils_base import PreTokenizedInput, TextInput |
32 | 32 |
|
33 | 33 |
|
34 | 34 | class Qwen2_5_VLVideosProcessorKwargs(VideosKwargs, total=False): |
35 | 35 | fps: Union[List[float], float] |
36 | 36 |
|
37 | 37 |
|
| 38 | +class Qwen2_5_VLImagesKwargs(ImagesKwargs): |
| 39 | + min_pixels: Optional[int] |
| 40 | + max_pixels: Optional[int] |
| 41 | + patch_size: Optional[int] |
| 42 | + temporal_patch_size: Optional[int] |
| 43 | + merge_size: Optional[int] |
| 44 | + |
| 45 | + |
38 | 46 | class Qwen2_5_VLProcessorKwargs(ProcessingKwargs, total=False): |
| 47 | + images_kwargs: Qwen2_5_VLImagesKwargs |
39 | 48 | videos_kwargs: Qwen2_5_VLVideosProcessorKwargs |
40 | 49 | _defaults = { |
41 | 50 | "text_kwargs": { |
|
0 commit comments