Skip to content
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

Moved pre-warm to DSP and call it in get_dsp() #90

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

mikeoliphant
Copy link
Contributor

This PR adds a prewarm() method to the DSP base class that gets called from get_dsp().

The default behavior is to process the model over "_prewarm_samples" samples. By default, this is 0 - so nothing happens for LSTM (which is what we want).

WaveNet and ConvNet both set "_prewarm_samples" to the size of the model's receptive field.

@sdatkinson I don't use ConvNet, so I'm not sure I got the receptive field correct - can you make sure to check it?

Resolves #89
Resolves #61

Copy link
Owner

@sdatkinson sdatkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍🏻

NAM/convnet.cpp Show resolved Hide resolved
@sdatkinson sdatkinson merged commit b67aaa2 into sdatkinson:main Dec 2, 2023
EdwardPayne added a commit to EdwardPayne/NeuralAmpModelerReamping that referenced this pull request Dec 30, 2023
* Move pre-warm to DSP and call it in get_dsp() (sdatkinson#90)

* Add nam namespace (sdatkinson#93)

* Fix tools (sdatkinson#94)

* [BREAKING] Remove parametric modeling code (sdatkinson#95)

* Get rid of parametric modeling code

* Virtual set condition array

* Bump version to 0.1.0

---------

Co-authored-by: Mike Oliphant <[email protected]>
Co-authored-by: Steven Atkinson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move pre-warm to overridable method Apply "anti-pop" for all network types
2 participants