question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why n_fft=400 by default in Transforms?

See original GitHub issue

In MelSpectrogram, Spectrogram, GriffinLim, n_fft defaults to 400. Is there a reason for not setting it with a power of 2?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vincentqbcommented, Jan 3, 2020

I will close this issue for now. Please feel free to re-open if there are more elements you would like to add to the discussion 😃

1reaction
vincentqbcommented, Jan 3, 2020

Quick run, and I don’t see significant differences 😃

In [1]: f = "steam-train-whistle-daniel_simon.wav"                                                                                                                                                          

In [2]: import torchaudio                                                                                                                                                                                   

In [3]: w, s = torchaudio.load(f)                                                                                                                                                                           

In [4]: %timeit torchaudio.transforms.Spectrogram(n_fft=400)(w)                                                                                                                                             
10.5 ms ± 376 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

In [5]: %timeit torchaudio.transforms.Spectrogram(n_fft=512)(w)                                                                                                                                             
11.1 ms ± 207 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Default value for transform - Splunk Community
Solved: FORMAT = * The special identifier $0 represents what was in the DEST_KEY before this regex was performed. Can I use $0...
Read more >
Transform Map - specifying default selection and e...
When running transforms on an Import Set, is it possible to specify which transform maps are selected by default and in what order?...
Read more >
how to set current transform as default status of an object in ...
You would just have to apply the current transformation of your object for that: Object -> Apply -> All Transforms.
Read more >
The Detection of Microemboli in Blood using Doppler Ultrasound
Transform) for use in the detection algorithm and the comparison of the three approaches to spectrum generation as viewed from the emboli-detection efficacy....
Read more >
Choose the default View Transform | Maya 2019
The view transform converts colors from the rendering working space in order to display a preview. It is applied in Viewport 2.0, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found