1. 27 Jan, 2022 1 commit
    • moto's avatar
      Add `is_ffmpeg_available` in test (#2170) · 39fe9df6
      moto authored
      Summary:
      Part of https://github.com/pytorch/audio/issues/2164.
      To make the tests introduced in https://github.com/pytorch/audio/issues/2164 skippable if ffmpeg features are not available,
      this commit adds `is_ffmpeg_available`.
      
      The availability of the features depend on two factors;
      1. If it was enabled at build.
      2. If the ffmpeg libraries are found at runtime.
      
      A simple way (for OSS workflow) to detect these is simply checking if
      `libtorchaudio_ffmpeg` presents and can be loaded without a failure.
      
      To facilitate this, this commit changes the
      `torchaudio._extension._load_lib` to return boolean result.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2170
      
      Reviewed By: carolineechen
      
      Differential Revision: D33797695
      
      Pulled By: mthrok
      
      fbshipit-source-id: 85e767fc06350b8f99de255bc965b8c92b8cfe97
      39fe9df6
  2. 26 Jan, 2022 6 commits
  3. 24 Jan, 2022 1 commit
    • popcornell's avatar
      allow Tacotron2 decoding batch_size 1 examples (#2156) · cea1dc66
      popcornell authored
      Summary:
      it seems to me that the current Tacotron2 model does not allow for decoding batch size 1 examples:
      e.g. following code fails. I may have a fix for that.
      
      ```python
      if __name__ == "__main__":
          max_length = 400
          n_batch = 1
          hdim = 32
          dec = _Decoder(
              encoder_embedding_dim=hdim,
              n_mels = hdim,
              n_frames_per_step = 1,
              decoder_rnn_dim = 1024,
              decoder_max_step = 2000,
              decoder_dropout = 0.1,
              decoder_early_stopping = True,
              attention_rnn_dim = 1024,
              attention_hidden_dim = 128,
              attention_location_n_filter = 32,
              attention_location_kernel_size = 31,
              attention_dropout = 0.1,
              prenet_dim = 256,
              gate_threshold = 0.5)
      
          inp = torch.rand((n_batch, max_length, hdim))
          lengths = torch.tensor([max_length]).expand(n_batch).to(inp.device, inp.dtype)
          dec(inp, torch.rand((n_batch, hdim, max_length)), lengths)[0]
          dec.infer(inp, lengths)[0]
      ```
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2156
      
      Reviewed By: carolineechen
      
      Differential Revision: D33744006
      
      Pulled By: nateanl
      
      fbshipit-source-id: 7d04726dfe7e45951ab0007f22f10f90f26379a7
      cea1dc66
  4. 22 Jan, 2022 1 commit
  5. 21 Jan, 2022 3 commits
  6. 20 Jan, 2022 2 commits
  7. 19 Jan, 2022 2 commits
  8. 18 Jan, 2022 1 commit
  9. 14 Jan, 2022 2 commits
  10. 08 Jan, 2022 1 commit
    • Binh Tang's avatar
      [PyTorchLightning/pytorch-lightning] Add deprecation path for renamed training... · 7b6b2d00
      Binh Tang authored
      [PyTorchLightning/pytorch-lightning] Add deprecation path for renamed training type plugins (#11227)
      
      Summary:
      ### New commit log messages
        4eede7c30 Add deprecation path for renamed training type plugins (#11227)
      
      Reviewed By: edward-io, daniellepintz
      
      Differential Revision: D33409991
      
      fbshipit-source-id: 373e48767e992d67db3c85e436648481ad16c9d0
      7b6b2d00
  11. 07 Jan, 2022 2 commits
    • Caroline Chen's avatar
      Add parameter usage to CTC inference tutorial (#2141) · ffbfe74a
      Caroline Chen authored
      Summary:
      Add explanation and demonstration of different beam search decoder parameters.
      Additionally use a better sample audio file and load in with token list instead of tokens file.
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2141
      
      Reviewed By: mthrok
      
      Differential Revision: D33463230
      
      Pulled By: carolineechen
      
      fbshipit-source-id: d3dd6452b03d4fc2e095d778189c66f7161e4c68
      ffbfe74a
    • moto's avatar
      Enable build ffmpeg-features in all related jobs (#2140) · 565f8d41
      moto authored
      Summary:
      This commit enables ffmpeg-feature build in tests and
      binary builds of all platforms.
      (Linux/macOS/Windows x conda/wheel)
      
      It also moves the definition of BUILD_FFMPEG env vars to the
      top level `config.yml`.
      
       ---
      Manual checking if all the build log contains `libtorchaudio_ffmpeg`.
      ### binary build
      - [x] `binary_linux_conda_py3.7_cpu`
      - [x] `binary_linux_conda_py3.7_cu102`
      - [x] `binary_linux_wheel_py3.7_cpu`
      - [x] `binary_linux_wheel_py3.7_cu102`
      - [x] `binary_macos_conda_py3.7_cpu`
      - [x] `binary_macos_wheel_py3.7_cpu`
      - [x] `binary_windows_conda_py3.7_cpu`
      - [x] `binary_windows_conda_py3.7_cu113`
      - [x] `binary_windows_wheel_py3.7_cpu`
      - [x] `binary_windows_wheel_py3.7_cu113`
      
      ### test
      - [x] `unittest_linux_cpu_py3.7`
      - [x] `unittest_linux_gpu_py3.7`
      - [x] `unittest_macos_cpu_py3.7`
      - [x] `unittest_windows_cpu_py3.7`
      - [x] `unittest_windows_gpu_py3.7`
      - [x] `integration test`
      
      Pull Request resolved: https://github.com/pytorch/audio/pull/2140
      
      Reviewed By: hwangjeff
      
      Differential Revision: D33464430
      
      Pulled By: mthrok
      
      fbshipit-source-id: 2c5b72be75d49019bf1599036180d4e56074e46b
      565f8d41
  12. 06 Jan, 2022 5 commits
  13. 05 Jan, 2022 7 commits
  14. 04 Jan, 2022 6 commits