Download image_processing_lfm3_vl.py from optimum-intel-internal-testing/tiny-random-lfm3-vl: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/optimum-intel-internal-testing/tiny-random-lfm3-vl/resolve/main/image_processing_lfm3_vl.py
- Command line
-
hf download hf://optimum-intel-internal-testing/tiny-random-lfm3-vl/image_processing_lfm3_vl.py
-
curl -L -o image_processing_lfm3_vl.py https://huggingface.co/optimum-intel-internal-testing/tiny-random-lfm3-vl/resolve/main/image_processing_lfm3_vl.py
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"] | |