transformers/tests/models/whisper
Arthur c87654dca1
[Whisper] Add rescaling function with do_normalize (#21263)
* add `zero_mean_unit_var_norm` function

* normalize before MEL computation

* fixup

* add simple test

* quality

* Update tests/models/whisper/test_feature_extraction_whisper.py

Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>

* fixup

* use attention masks if padding was applied

* Update based on review

Co-authored-by: bofeng huang <bofenghuang7@gmail.com>

---------

Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
Co-authored-by: bofeng huang <bofenghuang7@gmail.com>
2023-03-02 14:17:21 +01:00
..
__init__.py Add WhisperModel to transformers (#19166) 2022-10-05 22:28:31 +02:00
test_feature_extraction_whisper.py [Whisper] Add rescaling function with do_normalize (#21263) 2023-03-02 14:17:21 +01:00
test_modeling_flax_whisper.py Fix quality 2023-02-20 03:27:09 -05:00
test_modeling_tf_whisper.py 🔥Rework pipeline testing by removing PipelineTestCaseMeta 🚀 (#21516) 2023-02-28 19:40:57 +01:00
test_modeling_whisper.py Fix WhisperModelTest (#21883) 2023-03-01 20:41:27 +01:00
test_processor_whisper.py [Whisper] Fix forced decoder ids (#20652) 2022-12-07 16:44:13 +00:00
test_tokenization_whisper.py Add WhisperTokenizerFast (#21222) 2023-02-21 06:58:54 +01:00