tiny-random-lfm3-vl / image_processing_lfm3_vl.py
rkazants's picture
Add tiny random LFM3-VL model for optimum-intel tests (#1)
f85d8ef
Raw History Blame Contribute Delete
555 Bytes
# Copyright 2026 The HuggingFace Team. All rights reserved.
# Licensed under the Apache License, Version 2.0
"""Qwen-style dynamic-resolution image preprocessing for LFM3-VL."""
from transformers.models.qwen2_vl.image_processing_qwen2_vl import Qwen2VLImageProcessor
class Lfm3VlImageProcessor(Qwen2VLImageProcessor):
patch_size = 16
temporal_patch_size = 2
merge_size = 2
size = {"shortest_edge": 65_536, "longest_edge": 16_777_216}
image_mean = [0.5, 0.5, 0.5]
image_std = [0.5, 0.5, 0.5]
__all__ = ["Lfm3VlImageProcessor"]