botservice-dev commited on
Commit
2bb2db5
·
verified ·
1 Parent(s): 67039e6

Depth, matte and fill models for Parallax Wallpaper Studio

Browse files
README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: onnx
4
+ tags:
5
+ - onnx
6
+ - depth-estimation
7
+ - image-matting
8
+ - inpainting
9
+ - android
10
+ ---
11
+
12
+ # Parallax Wallpaper Studio models
13
+
14
+ ONNX exports of three open models, made to run on the phone's CPU (ONNX Runtime) inside the Android app
15
+ Parallax Wallpaper Studio. The app downloads them on demand: the depth model for depth-based parallax, and all
16
+ three for "Split into layers", which turns one photo into a layered wallpaper.
17
+
18
+ | File | Model | Used for | Licence |
19
+ |---|---|---|---|
20
+ | `depth-anything-v2-small-int8.onnx` | [Depth Anything V2 Small](https://huggingface.co/depth-anything/Depth-Anything-V2-Small-hf), int8 dynamic quantisation | Depth map | Apache-2.0 |
21
+ | `vitmatte-small-512-fp16w.onnx` | [ViTMatte Small (Composition-1k)](https://huggingface.co/hustvl/vitmatte-small-composition-1k), fixed 512×512 input, fp16 weights | Refining layer edges | Apache-2.0 |
22
+ | `big-lama-512-fp16w.onnx` | [LaMa](https://github.com/advimman/lama) (big-lama), fixed 512×512 input, fp16 weights | Filling the holes behind cut-out layers | Apache-2.0 |
23
+
24
+ Notes on the exports:
25
+
26
+ - The depth model matches the full-precision model to 0.9998 correlation.
27
+ - LaMa's FFTs have no ONNX export, so they are rewritten as constant DFT matrix multiplications. That fixes the
28
+ input size at 512×512.
29
+ - "fp16 weights" means the weights are stored as float16 and the maths runs in float32.
30
+
31
+ ## Credits
32
+
33
+ - **Depth Anything V2**: Lihe Yang, Bingyi Kang, Zilong Huang, Zhen Zhao, Xiaogang Xu, Jiashi Feng, Hengshuang Zhao.
34
+ *Depth Anything V2*, 2024. Only the Small model is Apache-2.0; Base and Large are not, and are not used here.
35
+ - **ViTMatte**: Jingfeng Yao, Xinggang Wang, Shusheng Yang, Baoyuan Wang. *ViTMatte: Boosting Image Matting with
36
+ Pretrained Plain Vision Transformers*, 2023 (hustvl).
37
+ - **LaMa**: Roman Suvorov, Elizaveta Logacheva, Anton Mashikhin, Anastasia Remizova, Arsenii Ashukha, Aleksei
38
+ Silvestrov, Naejin Kong, Harshith Goka, Kiwoong Park, Victor Lempitsky. *Resolution-robust Large Mask Inpainting
39
+ with Fourier Convolutions*, WACV 2022 (Samsung AI Center).
40
+
41
+ These are format conversions of the original weights. The licences and copyright of the original works apply.
big-lama-512-fp16w.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1d765c2c58e62a4d027b988e0faea43d1868e88366317318ca0a7df15defaf0
3
+ size 106442009
depth-anything-v2-small-int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b674426508aa52b0da136a70bb8e8cdd0888a630a4526350d9375caf82b1395b
3
+ size 35621067
vitmatte-small-512-fp16w.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0869db6a4247bf4d632419e68f7e953c8c2ecc15a38bc53102a311c6f62f4d6e
3
+ size 52397598