transformers/tests
Zhiyong Wang dce253f645
Add implementation of spectrogram_batch (#27159)
* Add initial implementation of `spectrogram_batch`

* Format the initial implementation

* Add test suite for the `spectrogram_batch`

* Update `spectrogram_batch` to ensure compatibility with test suite

* Update `spectrogram_batch` to include pre and post-processing

* Add `amplitude_to_db_batch` function and associated tests

* Add `power_to_db_batch` function and associated tests

* Reimplement the test suite for `spectrogram_batch`

* Fix errors in `spectrogram_batch`

* Add the function annotation for `spectrogram_batch`

* Address code quality

* Re-add `test_chroma_equivalence` function

* Update src/transformers/audio_utils.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/audio_utils.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

---------

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
2024-06-24 09:19:12 +02:00
..
agents Agents: Improve python interpreter (#31409) 2024-06-18 11:55:36 +02:00
benchmark
bettertransformer
deepspeed [tests] rename test_config_object to test_ds_config_object (#31403) 2024-06-19 11:19:15 +02:00
extended
fixtures
fsdp
generation RWKV: enable generation tests (#31490) 2024-06-20 14:15:01 +01:00
models Correct @is_flaky test decoration (#31480) 2024-06-24 08:09:21 +01:00
optimization fix get_scheduler when name is warmup_stable_decay (#31128) 2024-05-30 15:25:43 +01:00
peft_integration
pipelines Pass datasets trust_remote_code (#31406) 2024-06-17 17:29:13 +01:00
quantization GGUF: Fix llama 3 GGUF (#31358) 2024-06-20 14:29:58 +02:00
repo_utils
sagemaker Pass datasets trust_remote_code (#31406) 2024-06-17 17:29:13 +01:00
tokenization update ruff version (#30932) 2024-05-22 06:40:15 +02:00
trainer Pass datasets trust_remote_code (#31406) 2024-06-17 17:29:13 +01:00
utils Add implementation of spectrogram_batch (#27159) 2024-06-24 09:19:12 +02:00
__init__.py
test_backbone_common.py
test_cache_utils.py
test_configuration_common.py
test_configuration_utils.py Use HF_HUB_OFFLINE + fix has_file in offline mode (#31016) 2024-05-29 11:55:43 +01:00
test_feature_extraction_common.py
test_feature_extraction_utils.py
test_image_processing_common.py Fast image processor (#28847) 2024-06-11 15:47:38 +01:00
test_image_processing_utils.py
test_image_transforms.py
test_modeling_common.py Correct @is_flaky test decoration (#31480) 2024-06-24 08:09:21 +01:00
test_modeling_flax_common.py
test_modeling_flax_utils.py
test_modeling_tf_common.py
test_modeling_tf_utils.py
test_modeling_utils.py Use huggingface_hub helper function to split state dict (#31091) 2024-06-12 14:10:32 +02:00
test_pipeline_mixin.py Remove ConversationalPipeline and Conversation object (#31165) 2024-06-07 17:50:18 +01:00
test_processing_common.py add initial design for uniform processors + align model (#31197) 2024-06-13 16:27:16 +02:00
test_sequence_feature_extraction_common.py
test_tokenization_common.py SPLIT PR: add user defined symbols and control symbols (#31305) 2024-06-21 01:48:10 -07:00
test_tokenization_utils.py Token healing (#30081) 2024-06-03 10:53:15 +02:00