Commit 58c9af8
authored
[wwb] Add possibility to check video inputs for VLM (openvinotoolkit#3074)
# Description
WWB is updated to run VLM pipeline with video inputs.
- New model type has been added for this purpose, so to configure the
video input it's needed to run wwb with `--model-type
visual-video-text`.
- Default video data is data from dataset: lmms-lab/LLaVA-Video-178K ,
subset 30_60_s_academic_v0_1 , video from archive
30_60_s_academic_v0_1_videos_10.tar.gz (was chosen because of its weight
- 274 MB). Archive includs 56 videos from different datasets: youcook2,
NextQA, ego4d, Chrades and activitynet.
how to use:
`optimum-cli export openvino -m Qwen/Qwen2-VL-7B-Instruct
--weight-format int8 qwen2-vl-7b-Instruct`
`python whowhatbench/wwb.py --base-model qwen2-vl-7b-Instruct
--model-type visual-video-text --gt-data vlm_video_gt.csv`
Ticket:
CVS-173847
## Checklist:
- [X] Tests have been updated or added to cover the new code. <!-- If
the change isn't maintenance related, update the tests at
https://github.com/openvinotoolkit/openvino.genai/tree/master/tests or
explain in the description why the tests don't need an update. -->
- [X] This patch fully addresses the ticket. <!--- If follow-up pull
requests are needed, specify in description. -->
- [X] I have made corresponding changes to the documentation. <!-- Run
github.com/\<username>/openvino.genai/actions/workflows/deploy_gh_pages.yml
on your fork with your branch as a parameter to deploy a test version
with the updated content. Replace this comment with the link to the
built docs. -->1 parent 1d5dde7 commit 58c9af8
File tree
7 files changed
+157
-43
lines changed- tools/who_what_benchmark
- tests
- whowhatbench
7 files changed
+157
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
| 645 | + | |
645 | 646 | | |
646 | 647 | | |
647 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
5 | 8 | | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
| |||
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
141 | 221 | | |
142 | 222 | | |
143 | 223 | | |
| |||
Lines changed: 20 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | | - | |
| 2 | + | |
5 | 3 | | |
6 | | - | |
| 4 | + | |
7 | 5 | | |
8 | | - | |
| 6 | + | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 11 | + | |
21 | 12 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 13 | + | |
32 | 14 | | |
33 | 15 | | |
34 | 16 | | |
| |||
44 | 26 | | |
45 | 27 | | |
46 | 28 | | |
47 | | - | |
| 29 | + | |
48 | 30 | | |
49 | 31 | | |
50 | 32 | | |
| |||
60 | 42 | | |
61 | 43 | | |
62 | 44 | | |
| 45 | + | |
| 46 | + | |
63 | 47 | | |
64 | 48 | | |
| 49 | + | |
| 50 | + | |
65 | 51 | | |
66 | 52 | | |
67 | 53 | | |
| |||
124 | 110 | | |
125 | 111 | | |
126 | 112 | | |
127 | | - | |
| 113 | + | |
128 | 114 | | |
129 | 115 | | |
130 | 116 | | |
131 | 117 | | |
132 | 118 | | |
133 | 119 | | |
134 | 120 | | |
135 | | - | |
| 121 | + | |
136 | 122 | | |
137 | 123 | | |
138 | 124 | | |
| |||
160 | 146 | | |
161 | 147 | | |
162 | 148 | | |
| 149 | + | |
163 | 150 | | |
164 | 151 | | |
165 | 152 | | |
166 | | - | |
| 153 | + | |
| 154 | + | |
167 | 155 | | |
168 | 156 | | |
169 | 157 | | |
| 158 | + | |
170 | 159 | | |
171 | 160 | | |
172 | 161 | | |
173 | 162 | | |
| 163 | + | |
174 | 164 | | |
175 | | - | |
| 165 | + | |
176 | 166 | | |
177 | 167 | | |
178 | 168 | | |
179 | 169 | | |
180 | 170 | | |
| 171 | + | |
181 | 172 | | |
182 | 173 | | |
183 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
270 | 279 | | |
271 | 280 | | |
272 | 281 | | |
| |||
508 | 517 | | |
509 | 518 | | |
510 | 519 | | |
511 | | - | |
512 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
513 | 530 | | |
514 | 531 | | |
515 | 532 | | |
516 | | - | |
517 | | - | |
518 | | - | |
| 533 | + | |
519 | 534 | | |
| 535 | + | |
520 | 536 | | |
521 | 537 | | |
522 | 538 | | |
| |||
589 | 605 | | |
590 | 606 | | |
591 | 607 | | |
592 | | - | |
| 608 | + | |
593 | 609 | | |
594 | 610 | | |
595 | 611 | | |
| |||
606 | 622 | | |
607 | 623 | | |
608 | 624 | | |
| 625 | + | |
| 626 | + | |
609 | 627 | | |
610 | 628 | | |
611 | 629 | | |
| |||
828 | 846 | | |
829 | 847 | | |
830 | 848 | | |
831 | | - | |
| 849 | + | |
832 | 850 | | |
833 | 851 | | |
834 | 852 | | |
| |||
0 commit comments