File size: 2,307 Bytes
cbcd528
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
license: mit
base_model:
  - ZhengPeng7/BiRefNet_lite
pipeline_tag: image-segmentation
library_name: onnx
tags:
  - onnx
  - rostrum
  - image-segmentation
  - background-removal
  - birefnet
---

# BiRefNet-lite (ONNX), mirrored for Rostrum

BiRefNet-lite (Swin-T backbone), a dichotomous image segmentation model that finds the main subject of a picture, as the fp32 ONNX export by onnx-community (`onnx/model.onnx` there).

This repository is a pinned, public copy of the exact files the [Rostrum](https://huggingface.co/rostrumstudios) apps download. Rostrum fetches each file at a fixed commit of this repository and checks its SHA-256 before use.

## What Rostrum uses it for

Design's Select subject: it finds the main subject of a photo and returns a mask. It never draws or changes pixels.

Rostrum uses it for **analysis only, never generation**: it reads what is in a recording or a picture and makes no new sound, voice or image.

## Files

| File | Bytes | SHA-256 |
|---|---:|---|
| `model.onnx` | 224,005,088 | `5600024376f572a557870a5eb0afb1e5961636bef4e1e22132025467d0f03333` |

In Rostrum's models folder they go under `birefnet-lite/`.

## Source

| What | Where | Commit / version |
|---|---|---|
| Exact file (unchanged copy of onnx/model.onnx) | https://huggingface.co/onnx-community/BiRefNet_lite-ONNX | de15b22ba131738a16dff04aab8bdf8dc32e3ac1 |
| Original weights | https://huggingface.co/ZhengPeng7/BiRefNet_lite | aa62cd87eafb9cc43056d08ef3615a14628b831d (main when mirrored) |
| Original code | https://github.com/ZhengPeng7/BiRefNet | f7079632d681ecf12161fcea8905682934e59e51 (main when mirrored) |

## Authors

Peng Zheng, Dehong Gao, Deng-Ping Fan, Li Liu, Jorma Laaksonen, Wanli Ouyang, Nicu Sebe (BiRefNet); onnx-community (ONNX export).

## Licence

**MIT** (`LICENSE`, Copyright (c) 2024 ZhengPeng, from the original repository). File redistributed unchanged.

## Citation

The original authors ask that you cite:

```bibtex
@article{zheng2024birefnet,
  title={Bilateral Reference for High-Resolution Dichotomous Image Segmentation},
  author={Zheng, Peng and Gao, Dehong and Fan, Deng-Ping and Liu, Li and Laaksonen, Jorma and Ouyang, Wanli and Sebe, Nicu},
  journal={CAAI Artificial Intelligence Research},
  volume = {3},
  pages = {9150038},
  year={2024}
}
```