Download video_processing_lfm3_vl.py from optimum-intel-internal-testing/tiny-random-lfm3-vl: direct link, hf CLI and curl.
- Browser
- Download file 589 Bytes
-
https://huggingface.co/optimum-intel-internal-testing/tiny-random-lfm3-vl/resolve/main/video_processing_lfm3_vl.py
- Command line
-
hf download hf://optimum-intel-internal-testing/tiny-random-lfm3-vl/video_processing_lfm3_vl.py
-
curl -L -o video_processing_lfm3_vl.py https://huggingface.co/optimum-intel-internal-testing/tiny-random-lfm3-vl/resolve/main/video_processing_lfm3_vl.py
589 Bytes
| # Copyright 2026 The HuggingFace Team. All rights reserved. | |
| # Licensed under the Apache License, Version 2.0 | |
| """Qwen-style video preprocessing for LFM3-VL.""" | |
| from transformers.models.qwen3_vl.video_processing_qwen3_vl import Qwen3VLVideoProcessor | |
| class Lfm3VlVideoProcessor(Qwen3VLVideoProcessor): | |
| patch_size = 16 | |
| temporal_patch_size = 2 | |
| merge_size = 2 | |
| size = {"shortest_edge": 4_096, "longest_edge": 25_165_824} | |
| fps = 2.0 | |
| min_frames = 4 | |
| max_frames = 768 | |
| image_mean = [0.5, 0.5, 0.5] | |
| image_std = [0.5, 0.5, 0.5] | |
| __all__ = ["Lfm3VlVideoProcessor"] | |