[WIP] Audio preprocessing tutorial.#572
Conversation
|
Deploy preview for pytorch-tutorials-preview ready! Built with commit 3cb9b30 https://deploy-preview-572--pytorch-tutorials-preview.netlify.com |
|
Discussion with @brianjo
|
|
While testing with the mini-website, I'm running into failing nightlies from PyTorch. @jamarshon -- do you know one that's compatible with torchaudio that works? |
|
Just FYI, seeing similar issues with Torchvision against master. We're working on this branch #575. Once I get tv fixed, I'll enable audio. Cheers. |
|
try 1.2.0.dev20190722 or a few days back. torchaudio CI passed on those ones |
|
I was able to successfully generate the page using the mini-website with the latest path using |
|
@brianjo -- do you know where the style sheet controlling the size of the images generated in the document? thanks! |
| .. .. raw:: html | ||
| .. customgalleryitem:: | ||
| :figure: /_static/img/audio_preprocessing_tutorial_waveform.png | ||
| :tooltip: Preprocessing with Torchaudio Tutorial |
|
Thanks for the feedback! Updated to |
| print("Sample rate of waveform: {}".format(sample_rate)) | ||
|
|
||
| plt.figure() | ||
| plt.plot(waveform.transpose(0,1).numpy()) |
There was a problem hiding this comment.
.t() seems cleaner than transpose(0,1)
There was a problem hiding this comment.
Indeed. I updated it in other places too.
[WIP] Audio preprocessing tutorial. Yay!
Initial tutorial with an overview of dataset loading and transformers. Created using the following notebook and converted using this script.
TODO
In a later iteration, we should demo a neural network implementation, maybe inspired by a prior version (which no longer appears in the left hand side menu but is still searchable).
The initial pull request was done in torchaudio.