Closed
Conversation
- Add support for 3 new models: General-dynamic, Matting-dynamic, and Matting-Lite. - Update resolution logic to support dynamic aspect ratios. - Implement mask contraction (erosion) support with negative dilate_radius. - Add `on_frame_complete` callback to track frame processing progress
Author
|
I have updated only the wrapper code to accomodate the changes:
I have also added callback for progress bar update in case you need:
I also modified the model zoo and updated my first comment. |
edenaion
added a commit
that referenced
this pull request
Mar 15, 2026
- BiRefNet automatic alpha generation (16 model variants, download-on-demand) Adapted from Warwlock's PR #10 - Fix processed output color accuracy (remove match_luminance on CUDA + MLX) - Fix processed viewer washout (remove global Reinhard tone map) - Fix viewer/strip behavior on clip deletion (clear, left-neighbor, sync) - Fix torch.compile hang after BiRefNet model switch - Debug console stays on top
This was referenced Mar 15, 2026
Owner
|
Merged, thank you again! |
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.
What changes?
./BiRefNetModule/wrapper.pyrun_birefnetandget_birefnet_usage_optionsfunctions to theclip_manager.pyscript to connect backend to GUI.korniapackage to requirements.txt and toml files.wrapper.py.Code Documnetation
run_birefnet: Starts inference with loaded
clips.usage: Model selection string which is selected from
usage_to_weights_file(placed in wrapper script) dictionary. Dropdown selection can be directly passed to this.dilate_radius: Mask expansion and contraction amount. I think range between -50 to 50 is ideal. Implemented as post-processor at line 177 inside
wrapper.pyfileThis is the model dictionary
Key values can be used to create dopdown values for GUI.
BiRefNet Model Zoo & Resource Guide:
General