Repository navigation
Add Hugging Face model loading and request official weights - #716
Open
sayedshaun wants to merge 1 commit into
Open
sayedshaun wants to merge 1 commit into
sayedshaun wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a
DeepFilterNet.from_pretrained()API for loading a compatible model from the Hugging Face Hub or a local directory. It uses DeepFilterNet’s existing inference and audio-processing code.The Hub repository should contain
config.iniand acheckpoints/directory at its root. The loader supports revision pinning, authentication, caching, and offline use.Request to the maintainers: Would you consider publishing the official pretrained model weights and configuration on Hugging Face in this layout? An official repository would give users a discoverable source for the models and allow them to use this API.
Validation: Mocked checks passed for local and Hub loading, option forwarding, resampling, and input validation. End-to-end inference has not yet been tested because the model runtime dependencies and a compatible published Hub repository are unavailable in the test environment.