Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
decode mp3 with librosa if torchaudio >= 0.12 doesn't work as a tempo…
…rary workaround (#4923) * decode mp3 with librosa if torchaudio is > 0.12 (ideally version of ffmpeg should be checked too) * decode mp3 with torchaudio>=0.12 if it works (instead of librosa) * fix incorrect marks for mp3 tests (require torchaudio, not sndfile) * add tests for latest torchaudio + separate stage in CI for it (first try) * install ffmpeg only on ubuntu * use mock to emulate torchaudio fail, add tests for librosa (not all of them) * test torchaudio_latest only on ubuntu * try/except decoding with librosa for file-like objects * more tests for latest torchaudio, should be comlpete set now * replace logging with warnings * fix tests: catch warnings with a pytest context manager Co-authored-by: Quentin Lhoest <42851186+lhoestq@users.noreply.github.com>
- Loading branch information
1 parent
8ba0522
commit 142404f
Showing
5 changed files
with
237 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142404f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show benchmarks
PyArrow==6.0.0
Show updated benchmarks!
Benchmark: benchmark_array_xd.json
Benchmark: benchmark_getitem_100B.json
Benchmark: benchmark_indices_mapping.json
Benchmark: benchmark_iterating.json
Benchmark: benchmark_map_filter.json
Show updated benchmarks!
Benchmark: benchmark_array_xd.json
Benchmark: benchmark_getitem_100B.json
Benchmark: benchmark_indices_mapping.json
Benchmark: benchmark_iterating.json
Benchmark: benchmark_map_filter.json