1. 30 Apr, 2020 2 commits
  2. 29 Apr, 2020 4 commits
  3. 28 Apr, 2020 3 commits
    • Tomás Osório's avatar
      Add model Wav2Letter (#462) · d678357f
      Tomás Osório authored
      * add wav2letter model
      
      * add unit_test to model
      
      * add docstrings
      
      * add documentation
      
      * fix minor error, change logic on forward
      
      * update padding same with ceil
      
      * add inline typing and minor fixes to docstrings
      
      * remove python2
      
      * add formula do docstrings, change param name
      
      * add test with mfcc, add pytest
      
      * fix bug, update docstrings
      
      * change parameter name
      d678357f
    • Artyom Astafurov's avatar
      Port sox::vad (#578) · 3ecc7016
      Artyom Astafurov authored
      * initial test, stub function, transform and docstring
      
      * add draft working implementation, update docstrings
      
      * merge VadSate into Vad calss, move Channel into Vad class
      
      * remove functional stub for vad
      
      * add wav file for test
      
      * refactor _measure() to improve performance
      
      * rename argument
      
      * replace copy_ with assignment
      
      * refactor init, update documentation, update test for readability
      
      * clean up default values
      
      * move code from transforms.py to funtional.py and integrate state into a function
      
      * remove Channel state class
      
      * fix calcuation of a flush point
      
      * make multiple channels work
      
      * clean up multi-channel, update test
      
      * rename variables and re-org arguments for _measure
      
      * fix linting errors
      
      * add torchscript consistency test and fix errors
      
      * support and test batch consistency, fix normalization
      
      * update documentation, switch torchscript consistancy test to use transform to improve coverage
      
      * fix linting errors
      
      * remove un-used imports
      
      * address PR comments
      
      * add doc references into rst
      3ecc7016
    • moto's avatar
      bc82ffe2
  4. 27 Apr, 2020 1 commit
  5. 25 Apr, 2020 1 commit
  6. 24 Apr, 2020 6 commits
  7. 23 Apr, 2020 2 commits
  8. 22 Apr, 2020 3 commits
  9. 21 Apr, 2020 2 commits
  10. 20 Apr, 2020 3 commits
    • moto's avatar
      Improve lfilter speed (#564) · 27a0f765
      moto authored
      Before
      
      Total time: 13.7078
      
      ```
         722|    220501|      2.44247|  1.10769e-05| 17.82%|    for i_sample, o0 in enumerate(input_signal_windows.t()):
      (call)|         1|  6.36578e-05|  6.36578e-05|  0.00%|# /scratch/moto/pytorch/torch/tensor.py:460 __iter__
      (call)|    220500|      1.60566|  7.28191e-06| 11.71%|# /scratch/moto/pytorch/torch/tensor.py:474 <lambda>
         723|    220500|      1.86697|  8.46698e-06| 13.62%|        windowed_output_signal = padded_output_waveform[:, i_sample:(i_sample + n_order)]
         724|    220500|      1.94628|  8.82669e-06| 14.20%|        o0.addmv_(windowed_output_signal, a_coeffs_flipped, alpha=-1)
         725|    220500|         2.46|  1.11565e-05| 17.94%|        o0.div_(a_coeffs[0])
         726|         0|            0|            0|  0.00%|
         727|    220500|      3.37869|  1.53229e-05| 24.64%|        padded_output_waveform[:, i_sample + n_order - 1] = o0
      ```
      
      After
      
      Total time: 10.9667
      
      ```
         722|         1|   9.2268e-05|   9.2268e-05|  0.00%|    input_signal_windows.div_(a_coeffs[0])
         723|         1|  2.14577e-05|  2.14577e-05|  0.00%|    a_coeffs_flipped.div_(a_coeffs[0])
         724|    220501|      2.40216|  1.08941e-05| 21.90%|    for i_sample, o0 in enumerate(input_signal_windows.t()):
      (call)|         1|  5.84126e-05|  5.84126e-05|  0.00%|# /scratch/moto/pytorch/torch/tensor.py:460 __iter__
      (call)|    220500|      1.59821|   7.2481e-06| 14.57%|# /scratch/moto/pytorch/torch/tensor.py:474 <lambda>
         725|    220500|      1.82273|  8.26633e-06| 16.62%|        windowed_output_signal = padded_output_waveform[:, i_sample:(i_sample + n_order)]
         726|    220500|      1.84074|  8.34802e-06| 16.78%|        o0.addmv_(windowed_output_signal, a_coeffs_flipped, alpha=-1)
         727|    220500|       3.2952|  1.49442e-05| 30.05%|        padded_output_waveform[:, i_sample + n_order - 1] = o0
      ```
      27a0f765
    • moto's avatar
      Remove unused helper function (#565) · 66d3e3fa
      moto authored
      66d3e3fa
    • Bhargav Kathivarapu's avatar
      Add dcshift to functional (#558) · 91e59231
      Bhargav Kathivarapu authored
      * Add dcshift to functional
      
      * Doc string change and remove inplace clamp
      
      * Minor Fix to dcshit and separate sox test refactoring
      
      * Minor change to limiter_gain type
      
      * adding dcshift to __all__ in functional
      91e59231
  11. 17 Apr, 2020 3 commits
  12. 16 Apr, 2020 2 commits
  13. 15 Apr, 2020 1 commit
  14. 14 Apr, 2020 7 commits
    • Vincent QB's avatar
      Fixes #545 (#547) · 8c05bfab
      Vincent QB authored
      8c05bfab
    • moto's avatar
      Simplify and abstract away asset access in test (#542) · 0e5581cb
      moto authored
      This PR aims the following things;
      1. Introduce and adopt helper function `get_asset_path` that abstract the logic to construct path to test assets.
      2. Remove `create_temp_assets_dir` anywhere except `test_io`.
      
      The benefits of doing so are,
      a. the test code becomes simpler (no manual construction of asset path with `os.path.join`)
      b. No unnecessary directory creation and file copies.
      
      For 2. and b. tests in `test_io.py` (or tests that use `torchaudio.save`) are the only tests that need to write file to the disc, where the use of temporary directory makes it cleaner, therefore, `create_temp_assets_dir` is not necessary elsewhere. (still, `test_io` does not need to copy the entire asset directory, but that's not the point here.)
      
      Also if any test is accidentally overwriting an asset data, not using a copy will make us aware of such behavior, so it is better to get rid of `create_temp_assets_dir`.
      0e5581cb
    • moto's avatar
      Remove duplicated lfilter tests (#541) · 0fa07595
      moto authored
      This lfilter tests were moved to `test_torchscript_consistency.py` in #507 and GPU tests were added in #528.
      We can safely remove this tests from `test_functional_filtering.py`.
      0fa07595
    • Tomás Osório's avatar
      Inline typing init (#526) · 3383a2d9
      Tomás Osório authored
      * inline typing first iteration
      
      * fix issue with mypy
      
      * change docstring
      
      * add more typing
      
      * fix to not break BC
      
      * update docstrings
      3383a2d9
    • moto's avatar
      Move lfilter basic test to test_functional (#539) · af88b925
      moto authored
      af88b925
    • moto's avatar
      Call torch.stft directly (#531) · 6304db75
      moto authored
      * Update requirements and travis installation
      
      * Drop support for 3.5 and add test for 3.8
      
      * Call torch.stft directly
      6304db75
    • moto's avatar
      Run test against PyTorch nightly on Travis CI (#538) · f3217257
      moto authored
      * Update requirements and travis installation
      
      * Drop support for 3.5 and add test for 3.8
      f3217257