alegauss commited on
Commit
92e7259
·
verified ·
1 Parent(s): 22816af

Modelado models, manifest version 1

Browse files
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: per-model
4
+ pipeline_tag: image-to-3d
5
+ tags: [onnx, image-to-3d, depth-estimation, triposr, modelado]
6
+ ---
7
+
8
+ # Modelado models (ONNX)
9
+
10
+ The ONNX models [Modelado](https://github.com/alegauss/modelado) downloads to turn a photo
11
+ into a 3D model on Windows, with DirectML or on the CPU. They are converted from each
12
+ upstream's own weights and checked against PyTorch by `scripts/export_models.py`. Every
13
+ file is listed in `manifest.json` with its size and SHA-256, and the app refuses one that
14
+ differs. Each model keeps its upstream license:
15
+
16
+ | Model | Task | Variants | License |
17
+ | --- | --- | --- | --- |
18
+ | triposr-encoder | image-to-triplane | fp32 (1675 MB), fp16 (839 MB) | [MIT](https://huggingface.co/stabilityai/TripoSR/blob/5b521936b01fbe1890f6f9baed0254ab6351c04a/README.md) |
19
+ | triposr-decoder | triplane-decoder | fp32 (0.2 MB) | [MIT](https://huggingface.co/stabilityai/TripoSR/blob/5b521936b01fbe1890f6f9baed0254ab6351c04a/README.md) |
20
+ | depth-anything-v2-small | depth | fp32 (99 MB), fp16 (50 MB) | [Apache-2.0](https://huggingface.co/depth-anything/Depth-Anything-V2-Small-hf/blob/5426e4f0f36572d16453bbda7a8389317b1bef99/README.md) |
21
+ | u2net | background-removal | fp32 (176 MB) | [Apache-2.0 (U-2-Net weights), MIT (rembg export)](https://github.com/xuebinqin/U-2-Net/blob/master/LICENSE) |
22
+ | realesrgan-x4plus | upscale | fp32 (67 MB), fp16 (34 MB) | [BSD-3-Clause](https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE) |
23
+
24
+ `triposr-encoder` and `triposr-decoder` are [TripoSR](https://huggingface.co/stabilityai/TripoSR)
25
+ split in two: the encoder turns a 512 x 512 photo of an object into a triplane, the decoder
26
+ returns density and colour at any point of it, and the app extracts the mesh with marching cubes.
depth-anything-v2-small-fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9afc606a816dfd188f618e0a35cf38368e5b141d4d4519d7e3297a358f2d6a65
3
+ size 49585022
depth-anything-v2-small-fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b3c0e2b2d5f9f70eb747fa2b08734f975221a83a8292052c694dff187f54945
3
+ size 99084949
depth-anything-v2-small-meta.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": 1,
3
+ "name": "depth-anything-v2-small",
4
+ "task": "depth",
5
+ "inputs": [
6
+ {
7
+ "name": "image",
8
+ "shape": [
9
+ 1,
10
+ 3,
11
+ 518,
12
+ 518
13
+ ]
14
+ }
15
+ ],
16
+ "outputs": [
17
+ {
18
+ "name": "depth",
19
+ "shape": [
20
+ 1,
21
+ 518,
22
+ 518
23
+ ]
24
+ }
25
+ ],
26
+ "preprocess": {
27
+ "size": 518,
28
+ "value_range": [
29
+ 0.0,
30
+ 1.0
31
+ ]
32
+ },
33
+ "params": {},
34
+ "validation": {
35
+ "image": "captured.jpeg",
36
+ "fp32": {
37
+ "max_error": 1.4e-05,
38
+ "psnr": 120.0
39
+ },
40
+ "fp16": {
41
+ "max_error": 0.002632,
42
+ "psnr": 71.6
43
+ }
44
+ },
45
+ "variants": {
46
+ "fp32": {
47
+ "file": "fp32.onnx",
48
+ "bytes": 99084949,
49
+ "sha256": "6b3c0e2b2d5f9f70eb747fa2b08734f975221a83a8292052c694dff187f54945"
50
+ },
51
+ "fp16": {
52
+ "file": "fp16.onnx",
53
+ "bytes": 49585022,
54
+ "sha256": "9afc606a816dfd188f618e0a35cf38368e5b141d4d4519d7e3297a358f2d6a65"
55
+ }
56
+ },
57
+ "upstream": {
58
+ "url": "https://huggingface.co/depth-anything/Depth-Anything-V2-Small-hf/resolve/5426e4f0f36572d16453bbda7a8389317b1bef99/model.safetensors",
59
+ "license": "Apache-2.0",
60
+ "license_url": "https://huggingface.co/depth-anything/Depth-Anything-V2-Small-hf/blob/5426e4f0f36572d16453bbda7a8389317b1bef99/README.md"
61
+ }
62
+ }
realesrgan-x4plus-fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a2e2f7e3c57ebbe881e0e79f65625298916fe6f0f02265873b2e0ae4e770f81
3
+ size 33651545
realesrgan-x4plus-fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33bad6284772e779db17c7ebb216f25f18be584ba13eb7bc0c0ee16d117ccc0c
3
+ size 67051646
realesrgan-x4plus-meta.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": 1,
3
+ "name": "realesrgan-x4plus",
4
+ "task": "upscale",
5
+ "inputs": [
6
+ {
7
+ "name": "image",
8
+ "shape": [
9
+ 1,
10
+ 3,
11
+ "height",
12
+ "width"
13
+ ]
14
+ }
15
+ ],
16
+ "outputs": [
17
+ {
18
+ "name": "upscaled",
19
+ "shape": [
20
+ 1,
21
+ 3,
22
+ "out_height",
23
+ "out_width"
24
+ ]
25
+ }
26
+ ],
27
+ "preprocess": {
28
+ "value_range": [
29
+ 0.0,
30
+ 1.0
31
+ ]
32
+ },
33
+ "params": {
34
+ "scale": 4,
35
+ "tile": 256
36
+ },
37
+ "validation": {
38
+ "image": "0014.jpg",
39
+ "fp32": {
40
+ "max_error": 1.1e-05,
41
+ "psnr": 120.0
42
+ },
43
+ "fp16": {
44
+ "max_error": 0.004984,
45
+ "psnr": 75.87
46
+ }
47
+ },
48
+ "variants": {
49
+ "fp32": {
50
+ "file": "fp32.onnx",
51
+ "bytes": 67051646,
52
+ "sha256": "33bad6284772e779db17c7ebb216f25f18be584ba13eb7bc0c0ee16d117ccc0c"
53
+ },
54
+ "fp16": {
55
+ "file": "fp16.onnx",
56
+ "bytes": 33651545,
57
+ "sha256": "3a2e2f7e3c57ebbe881e0e79f65625298916fe6f0f02265873b2e0ae4e770f81"
58
+ }
59
+ },
60
+ "upstream": {
61
+ "url": "https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth",
62
+ "license": "BSD-3-Clause",
63
+ "license_url": "https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE"
64
+ }
65
+ }
triposr-decoder-fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1604a0dc1903eee485d5a388dd2b4bcac8fad484a96010a797d7c1f40583d985
3
+ size 173374
triposr-decoder-meta.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": 1,
3
+ "name": "triposr-decoder",
4
+ "task": "triplane-decoder",
5
+ "inputs": [
6
+ {
7
+ "name": "triplane",
8
+ "shape": [
9
+ 1,
10
+ 3,
11
+ 40,
12
+ 64,
13
+ 64
14
+ ]
15
+ },
16
+ {
17
+ "name": "points",
18
+ "shape": [
19
+ "n",
20
+ 3
21
+ ]
22
+ }
23
+ ],
24
+ "outputs": [
25
+ {
26
+ "name": "density",
27
+ "shape": [
28
+ "n"
29
+ ]
30
+ },
31
+ {
32
+ "name": "color",
33
+ "shape": [
34
+ "n",
35
+ 3
36
+ ]
37
+ }
38
+ ],
39
+ "preprocess": {
40
+ "value_range": [
41
+ -0.87,
42
+ 0.87
43
+ ]
44
+ },
45
+ "params": {
46
+ "radius": 0.87,
47
+ "density_threshold": 25.0,
48
+ "chunk": 262144
49
+ },
50
+ "validation": {
51
+ "image": "chair.png",
52
+ "grid": 64,
53
+ "fp32": {
54
+ "density_error": 9.3e-05,
55
+ "color_error": 2.9e-05
56
+ }
57
+ },
58
+ "variants": {
59
+ "fp32": {
60
+ "file": "fp32.onnx",
61
+ "bytes": 173374,
62
+ "sha256": "1604a0dc1903eee485d5a388dd2b4bcac8fad484a96010a797d7c1f40583d985"
63
+ }
64
+ },
65
+ "upstream": {
66
+ "url": "https://huggingface.co/stabilityai/TripoSR/resolve/5b521936b01fbe1890f6f9baed0254ab6351c04a/model.ckpt",
67
+ "license": "MIT",
68
+ "license_url": "https://huggingface.co/stabilityai/TripoSR/blob/5b521936b01fbe1890f6f9baed0254ab6351c04a/README.md"
69
+ }
70
+ }
triposr-encoder-fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bb475e29ca6f4c936f60cc7e870b7a88350d109c17eb849cc118bcb98051d52
3
+ size 838912052
triposr-encoder-fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:363bcb6cbe44a144ab478a17f29b01af6378e25d81cdc0e04141b69fdb684008
3
+ size 1675325386
triposr-encoder-meta.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": 1,
3
+ "name": "triposr-encoder",
4
+ "task": "image-to-triplane",
5
+ "inputs": [
6
+ {
7
+ "name": "image",
8
+ "shape": [
9
+ 1,
10
+ 3,
11
+ 512,
12
+ 512
13
+ ]
14
+ }
15
+ ],
16
+ "outputs": [
17
+ {
18
+ "name": "triplane",
19
+ "shape": [
20
+ 1,
21
+ 3,
22
+ 40,
23
+ 64,
24
+ 64
25
+ ]
26
+ }
27
+ ],
28
+ "preprocess": {
29
+ "size": 512,
30
+ "value_range": [
31
+ 0.0,
32
+ 1.0
33
+ ],
34
+ "background": 0.5,
35
+ "foreground_ratio": 0.85
36
+ },
37
+ "params": {
38
+ "radius": 0.87,
39
+ "density_threshold": 25.0
40
+ },
41
+ "validation": {
42
+ "image": "chair.png",
43
+ "grid": 64,
44
+ "fp32": {
45
+ "triplane_relative_error": 3e-06,
46
+ "occupancy_mismatch": 0.0
47
+ },
48
+ "fp16": {
49
+ "triplane_relative_error": 0.000974,
50
+ "occupancy_mismatch": 0.0
51
+ }
52
+ },
53
+ "variants": {
54
+ "fp32": {
55
+ "file": "fp32.onnx",
56
+ "bytes": 1675325386,
57
+ "sha256": "363bcb6cbe44a144ab478a17f29b01af6378e25d81cdc0e04141b69fdb684008"
58
+ },
59
+ "fp16": {
60
+ "file": "fp16.onnx",
61
+ "bytes": 838912052,
62
+ "sha256": "7bb475e29ca6f4c936f60cc7e870b7a88350d109c17eb849cc118bcb98051d52"
63
+ }
64
+ },
65
+ "upstream": {
66
+ "url": "https://huggingface.co/stabilityai/TripoSR/resolve/5b521936b01fbe1890f6f9baed0254ab6351c04a/model.ckpt",
67
+ "license": "MIT",
68
+ "license_url": "https://huggingface.co/stabilityai/TripoSR/blob/5b521936b01fbe1890f6f9baed0254ab6351c04a/README.md"
69
+ }
70
+ }
u2net-fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d10d2f3bb75ae3b6d527c77944fc5e7dcd94b29809d47a739a7a728a912b491
3
+ size 175997641
u2net-meta.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": 1,
3
+ "name": "u2net",
4
+ "task": "background-removal",
5
+ "inputs": [
6
+ {
7
+ "name": "input.1",
8
+ "shape": [
9
+ 1,
10
+ 3,
11
+ 320,
12
+ 320
13
+ ]
14
+ }
15
+ ],
16
+ "outputs": [
17
+ {
18
+ "name": "1959",
19
+ "shape": [
20
+ 1,
21
+ 1,
22
+ 320,
23
+ 320
24
+ ]
25
+ }
26
+ ],
27
+ "preprocess": {
28
+ "size": 320,
29
+ "value_range": [
30
+ 0.0,
31
+ 1.0
32
+ ],
33
+ "scale_by_max": true,
34
+ "mean": [
35
+ 0.485,
36
+ 0.456,
37
+ 0.406
38
+ ],
39
+ "std": [
40
+ 0.229,
41
+ 0.224,
42
+ 0.225
43
+ ]
44
+ },
45
+ "params": {},
46
+ "validation": {
47
+ "image": "chair.png",
48
+ "fp32": {
49
+ "iou": 0.9786
50
+ }
51
+ },
52
+ "variants": {
53
+ "fp32": {
54
+ "file": "fp32.onnx",
55
+ "bytes": 175997641,
56
+ "sha256": "8d10d2f3bb75ae3b6d527c77944fc5e7dcd94b29809d47a739a7a728a912b491"
57
+ }
58
+ },
59
+ "upstream": {
60
+ "url": "https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx",
61
+ "license": "Apache-2.0 (U-2-Net weights), MIT (rembg export)",
62
+ "license_url": "https://github.com/xuebinqin/U-2-Net/blob/master/LICENSE"
63
+ }
64
+ }