- 13 Apr, 2020 3 commits
-
-
moto authored
* Make test module name descriptive * Rename test_functional_filtering to test_sox_compatibility
-
moto authored
-
Tomás Osório authored
-
- 09 Apr, 2020 5 commits
-
-
moto authored
-
moto authored
* Separate CPU and GPU tests for functions torchscript test * fix indentation Co-authored-by:Vincent QB <vincentqb@users.noreply.github.com>
-
Joseph Spisak authored
-
moto authored
-
Tomás Osório authored
* add inline typing * fix error * minor change * minor fix
-
- 08 Apr, 2020 1 commit
-
-
Tomás Osório authored
* add config * remove unnecessary
-
- 07 Apr, 2020 4 commits
-
-
Tomás Osório authored
* add inline typing to utils Dataset * add inline typing to common_utils * add missing inline typing * add typing to kwarg * add missing inline typing * update docstring * undo indentation Co-authored-by:Vincent QB <vincentqb@users.noreply.github.com>
-
moto authored
-
moto authored
-
moto authored
This improves the speed of `lfilter` (and functions that use `lfilter`, such as `biquad`) by 10%. * Before (23.4369 seconds for `lfilter` call) Breakdown ``` 720| 220501| 4.4464| 2.0165e-05| 18.97%| for i_sample, o0 in enumerate(input_signal_windows.t()): (call)| 1| 7.86781e-05| 7.86781e-05| 0.00%|# /scratch/moto/pytorch/torch/tensor.py:460 __iter__ (call)| 220500| 2.72458| 1.23564e-05| 11.62%|# /scratch/moto/pytorch/torch/tensor.py:474 <lambda> 721| 220500| 2.80982| 1.2743e-05| 11.99%| windowed_output_signal = padded_output_waveform[:, i_sample:(i_sample + n_order)] 722| 220500| 4.92106| 2.23177e-05| 21.00%| o0.sub_(torch.mv(windowed_output_signal, a_coeffs_flipped)) 723| 220500| 3.72974| 1.69149e-05| 15.91%| o0.div_(a_coeffs[0]) 724| 0| 0| 0| 0.00%| 725| 220500| 4.77714| 2.1665e-05| 20.38%| padded_output_waveform[:, i_sample + n_order - 1] = o0 ``` * After (20.8405 seconds for `lfilter` call) Breakdown ``` 720| 220501| 4.40834| 1.99924e-05| 21.15%| for i_sample, o0 in enumerate(input_signal_windows.t()): (call)| 1| 7.31945e-05| 7.31945e-05| 0.00%|# /scratch/moto/pytorch/torch/tensor.py:460 __iter__ (call)| 220500| 2.68595| 1.21812e-05| 12.89%|# /scratch/moto/pytorch/torch/tensor.py:474 <lambda> 721| 220500| 2.97357| 1.34856e-05| 14.27%| windowed_output_signal = padded_output_waveform[:, i_sample:(i_sample + n_order)] 722| 220500| 2.63567| 1.19531e-05| 12.65%| o0.addmv_(windowed_output_signal, a_coeffs_flipped) 723| 220500| 3.4228| 1.55229e-05| 16.42%| o0.div_(a_coeffs[0]) 724| 0| 0| 0| 0.00%| 725| 220500| 4.68726| 2.12574e-05| 22.49%| padded_output_waveform[:, i_sample + n_order - 1] = o0 ``` * Script ```python import pprofile import torch import torchaudio import torchaudio.functional as F def profile_biquad(): waveform, sr = torchaudio.load('test/assets/100Hz_44100Hz_16bit_05sec.wav', normalization=True) prof = pprofile.Profile() with prof(): F.equalizer_biquad(waveform, sr, 3000, 1, 0.707) prof.print_stats() profile_biquad() ``` * See also https://github.com/pytorch/audio/issues/260#issuecomment-610074110
-
- 06 Apr, 2020 4 commits
-
-
moto authored
-
moto authored
* grep -l 'torch.allclose' -r test | xargs sed -i 's/assert torch.allclose/torch.testing.assert_allclose/g' * grep -l 'torch.allclose' -r test | xargs sed -i 's/self.assertTrue(torch.allclose(\(.*\)))/torch.testing.assert_allclose(\1)/g' * Fix missing atol/rtol, wrong shape, argument order. Remove redundant shape assertions
-
moto authored
-
Tomás Osório authored
* add CommonDataset Inline typing * inline Typing librispeech * add inline typing ljspeech * add inline typing speechcommands * add inline typing to vctk * add inline typing yesno * apply type to __getitem__ Co-authored-by:Vincent QB <vincentqb@users.noreply.github.com>
-
- 03 Apr, 2020 10 commits
-
-
moto authored
* Fix Fade device compatibility
-
Vincent QB authored
-
moto authored
-
moto authored
* Fix test_compute_deltas_twochannels * Fix 3batch test helper
-
moto authored
-
moto authored
-
Tomás Osório authored
* fix download * fix reading tsv archive * add new languages * maintain same structure as other datasets * update CommonVoice Tests * fix * change directory name * remove extra line
-
moto authored
-
moto authored
-
moto authored
-
- 02 Apr, 2020 4 commits
-
-
Tomás Osório authored
* first stage * add inline typing * Fix typing and Flake8
-
moto authored
-
moto authored
-
Tomás Osório authored
* fix issue with VCTK dataset * update docstring * filter out folder p315 * add hidden except_folder has hidden variable * maintain structure * lint * remove space Co-authored-by:Vincent QB <vincentqb@users.noreply.github.com>
-
- 01 Apr, 2020 5 commits
-
-
Tomás Osório authored
* add inline typing * correct typing and docstring * remove inline typing Any on SoxEffect
-
moto authored
-
peterjc123 authored
-
Tomás Osório authored
* add inline typing * update type hinting * update typing * sync the docstrings typing * reorder imports, add typing to missing method * add missing parenthesis
-
Bhargav Kathivarapu authored
-
- 31 Mar, 2020 2 commits
-
-
Tomás Osório authored
* add typing to functional * fix minor things * fix flake8
-
moto authored
-
- 30 Mar, 2020 2 commits
-
-
moto authored
-
Vincent QB authored
* testing with sox only when sox is available. * use wav instead of mp3 for testing functions. * typo. * guard against not sox. * backends definition. * grouping backend functions into a separate file. * remove duplicated code. * requires sox. * replace by wav, requires sox. * require with scope. * undo alignment. * requires sox for these two, because of mp3. * no longer need first mp3. * cleaning. * new wav version of file. * flake8. * remove unnecessary load. * flake8. * lint. * lint. * revert formatting of file. * merging into common_utils. * docstring. * rename to common_utils.
-