Update README
Browse files- .gitattributes +1 -0
- README.md +36 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
base_model: joelseytre/toonout
|
| 4 |
+
tags:
|
| 5 |
+
- background-removal
|
| 6 |
+
- mask-generation
|
| 7 |
+
- Dichotomous Image Segmentation
|
| 8 |
+
- anime
|
| 9 |
+
- vision.cpp
|
| 10 |
+
pipeline_tag: image-segmentation
|
| 11 |
---
|
| 12 |
+
# GGUF models for ToonOut
|
| 13 |
+
|
| 14 |
+
ToonOut is a fine-tuned variant of BiRefNet specialized for background removal
|
| 15 |
+
in anime-style images. The weights in this repository are converted for
|
| 16 |
+
lightweight inference on consumer hardware with
|
| 17 |
+
[vision.cpp](https://github.com/Acly/vision.cpp).
|
| 18 |
+
|
| 19 |
+
* Original repository: [MatteoKartoon/BiRefNet (Github)](https://github.com/MatteoKartoon/BiRefNet)
|
| 20 |
+
* Original weights: [joelseytre/toonout (HuggingFace)](https://huggingface.co/joelseytre/toonout)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
## Run
|
| 24 |
+
|
| 25 |
+
Example inference with [vision.cpp](https://github.com/Acly/vision.cpp):
|
| 26 |
+
|
| 27 |
+
#### CLI
|
| 28 |
+
```sh
|
| 29 |
+
vision-cli birefnet -m BiRefNet-toonout-F16.gguf -i input.png -o mask.png --composite comp.png
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
#### C++
|
| 33 |
+
```c++
|
| 34 |
+
image_data image = image_load("input.png");
|
| 35 |
+
backend_device device = backend_init();
|
| 36 |
+
birefnet_model model = birefnet_load_model("BiRefNet-toonout-F16.gguf", device);
|
| 37 |
+
image_data mask = birefnet_compute(model, image);
|
| 38 |
+
image_save(mask, "mask.png");
|
| 39 |
+
```
|