Commit c130ee0
Fix bidirlm omni double frame sampling (#4700)
* fix: disable inner video sampler in BidirLM-Omni encoder
VideoCollator already samples frames at the requested fps, then drops
the video metadata before handing a 4D tensor to the model. With
do_sample_frames=True (the BidirLM-Omni video_preprocessor_config
default), Qwen3VLVideoProcessor.sample_frames hits the metadata.fps=24
fallback and downsamples to ~T/12, throwing away most of the frames
the outer collator extracted. Set do_sample_frames=False on the loaded
processor at construction so sampling happens exactly once.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* update method for setting frames sampling
* simplify
* move imports inside
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Roman Solomatin <36135455+Samoed@users.noreply.github.com>1 parent 3bfe4aa commit c130ee0
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
97 | 114 | | |
98 | 115 | | |
99 | 116 | | |
| |||
0 commit comments