-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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! |
index.rst
Outdated
.. .. raw:: html | ||
.. customgalleryitem:: | ||
:figure: /_static/img/audio_preprocessing_tutorial_waveform.png | ||
:tooltip: Preprocessing with Torchaudio Tutorial |
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.
torchaudio
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.
bump
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.t() seems cleaner than transpose(0,1)
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.
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.