chore: switch tags - #4
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Hugging Face Hub tag used to identify the BiRefNet model (moving from birefnet to biref) to avoid conflicts with Hub internal behavior, while preserving backward compatibility for already-published repos.
Changes:
- Update
BiRefNet’s declared Hubtagsfrom["nobg", "birefnet"]to["nobg", "biref"]. - Update
AutoModeland theAutoProcessorlegacy fallback to recognize bothbirefandbirefnettags. - Bump library version to
0.2.5.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/nobg/birefnet/modeling_birefnet.py |
Changes the model’s Hub tag to biref to avoid Hub tag collisions. |
src/nobg/auto.py |
Accepts both biref and legacy birefnet tags for model/processor dispatch. |
src/nobg/__init__.py |
Bumps package version to 0.2.5 (Hatch dynamic version source). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
Author
|
minor follow up, to avoid any friction in the future i should have gone for |
chonk-lain
added a commit
that referenced
this pull request
Jul 29, 2026
chore: edit tags as a follow up on #4
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.
as per my communications with the HF people (internally) i think the best course of action will be to switch the tags to something else than birefnet as that will contradict with some of the internal workings (code snippet support, download count, ... )

which already shows, by the time i'm making this pr the HF repo shows the following erroneous code snippet
this will be an essential fix, and in the upcoming near future when our code snippet officially deploys on the hub there will be no friction with all of these inner workings.
TLDR;
switch tags from
birefnet->biref