Commit 33debbe
authored
Update number of mel bins for whisper model (microsoft#25675)
### Description
<!-- Describe your changes. -->
Update number of mel bins for whisper model as it differs based on the
Whisper model version. Otherwise I am unable to run Whisper v3 models as
the num_mel_bins is 128 for that.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Currently unable to run Whisper v3 models as the num_mel_bins is 128 and
it is fixed to 80 right now and causes issue during preprocessing.1 parent 9c9e3a6 commit 33debbe
File tree
1 file changed
+9
-20
lines changed- onnxruntime/python/tools/transformers/models/whisper
1 file changed
+9
-20
lines changedLines changed: 9 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
| 95 | + | |
98 | 96 | | |
99 | 97 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 98 | + | |
106 | 99 | | |
107 | 100 | | |
108 | 101 | | |
| |||
511 | 504 | | |
512 | 505 | | |
513 | 506 | | |
514 | | - | |
515 | | - | |
516 | | - | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
517 | 510 | | |
518 | 511 | | |
519 | 512 | | |
520 | 513 | | |
521 | 514 | | |
522 | 515 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
| 516 | + | |
529 | 517 | | |
530 | | - | |
| 518 | + | |
531 | 519 | | |
532 | 520 | | |
533 | 521 | | |
534 | | - | |
| 522 | + | |
| 523 | + | |
535 | 524 | | |
536 | 525 | | |
537 | 526 | | |
| |||
0 commit comments