BiRefNet Studio - Desktop Models
ONNX exports of several background-removal/matting checkpoints, converted for use in BiRefNet Studio, a desktop app for on-device background removal (Windows/macOS, ONNX Runtime, CPU/CUDA/CoreML). Conversion source: tools/export_onnx.py in that app's source repo (deformable-conv layers reimplemented via GridSample for ONNX-export compatibility; no change to model weights or behavior).
None of the underlying models were trained by this repo's owner - all credit for the models themselves belongs to their original authors, linked below. This page exists to satisfy each model's license terms for redistributing a converted copy.
Files and their sources
| File | Original model | License | Author |
|---|---|---|---|
birefnet_general.onnx |
ZhengPeng7/BiRefNet | MIT | ZhengPeng7 |
birefnet_portrait.onnx |
ZhengPeng7/BiRefNet-portrait | MIT | ZhengPeng7 |
birefnet_general_hr.onnx |
ZhengPeng7/BiRefNet_HR | MIT | ZhengPeng7 |
birefnet_hr_matting.onnx |
ZhengPeng7/BiRefNet_HR-matting | MIT | ZhengPeng7 |
birefnet_general_lite2k.onnx |
ZhengPeng7/BiRefNet_lite-2K | MIT | ZhengPeng7 |
birefnet_general_lite2k_portrait.onnx |
ZhengPeng7/BiRefNet_lite-2K (width/height-swapped export of the same checkpoint, for portrait-oriented photos) | MIT | ZhengPeng7 |
birefnet_ben2.onnx |
PramaLLC/BEN2 (base/open-source checkpoint) | MIT | Prama LLC |
birefnet_feynobg.onnx |
feyninc/FeyNobg | Apache License 2.0 | Feyn |
Changes made to every file: converted from the original PyTorch checkpoint to ONNX format (opset 17), with no changes to model weights or predicted output. See tools/export_onnx.py in the BiRefNet Studio source repo for the exact conversion code.
MIT-licensed models (BiRefNet family, BEN2)
Each MIT-licensed source above requires its copyright notice to accompany redistributed copies. Reproduced here for each:
BiRefNet family (ZhengPeng7/BiRefNet and all its variants above):
MIT License
Copyright (c) 2024 ZhengPeng
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
BEN2 (PramaLLC/BEN2):
MIT License
Copyright (c) 2025 Prama LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note: PramaLLC/BEN2 also offers a separate, paid "full" model with additional capabilities. birefnet_ben2.onnx here is converted from their base/open-source MIT-licensed checkpoint only.
Apache 2.0-licensed models (FeyNobg)
birefnet_feynobg.onnx is converted from feyninc/FeyNobg, Copyright 2026 Feyn, licensed under the Apache License, Version 2.0. A copy of the license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Change made to this file, as required by the License: converted from the original PyTorch checkpoint to ONNX format (opset 17); no change to model weights or behavior.