File size: 555 Bytes
f85d8ef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # 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"]
|