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

ENH: Determine network kwargs dynamically in vak.models.get #680

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

NickleDave
Copy link
Collaborator

This pull request uses inspect.signature to determine whether a model's network has num_input_channels and num_freqbins parameters, and then gets the corresponding values from the dataset's input shape to add to the keyword arguments used when instantiating the model.

This approach is fragile but at least makes it possible to use a model that is not built in, as long as that model's network has these keyword arguments.

@NickleDave NickleDave merged commit a2ae654 into main Jul 5, 2023
0 of 3 checks passed
@NickleDave NickleDave deleted the handle-inputs-better-in-models-get branch July 5, 2023 18:39
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.

1 participant