singam96/ShadeNet-5-35M: upload hf_draft
Browse files- README.md +2 -0
- config.json +39 -0
README.md
CHANGED
|
@@ -264,6 +264,8 @@ python infer.py photos/ \
|
|
| 264 |
|
| 265 |
Each input produces a panel image with the albedo, depth and normal maps. A GPU is recommended: the model has 35M parameters and runs at 448px.
|
| 266 |
|
|
|
|
|
|
|
| 267 |
## Limitations
|
| 268 |
|
| 269 |
- Input sizes: multiples of 448 only (448 is what it was trained at). Other sizes must be resized first.
|
|
|
|
| 264 |
|
| 265 |
Each input produces a panel image with the albedo, depth and normal maps. A GPU is recommended: the model has 35M parameters and runs at 448px.
|
| 266 |
|
| 267 |
+
`config.json` in this repository lists the architecture, the input and output convention (7 maps in [-1, 1]: albedo, depth, normal), the supported sizes and the recommended inference settings.
|
| 268 |
+
|
| 269 |
## Limitations
|
| 270 |
|
| 271 |
- Input sizes: multiples of 448 only (448 is what it was trained at). Other sizes must be resized first.
|
config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_name": "ShadeNet-5-35M",
|
| 3 |
+
"task": "intrinsic-decomposition",
|
| 4 |
+
"architecture": "ParallelUNet + frozen DINOv2 ViT-S/14",
|
| 5 |
+
"backbone": "facebook/dinov2-small",
|
| 6 |
+
"parameters": 34652431,
|
| 7 |
+
"trainable_parameters": 12595855,
|
| 8 |
+
"image_size": 448,
|
| 9 |
+
"supported_image_sizes": [448, 896],
|
| 10 |
+
"input": {
|
| 11 |
+
"name": "input_rgb",
|
| 12 |
+
"channels": 3,
|
| 13 |
+
"range": [-1.0, 1.0],
|
| 14 |
+
"note": "RGB photo, resized and padded to a supported size"
|
| 15 |
+
},
|
| 16 |
+
"output": {
|
| 17 |
+
"name": "maps",
|
| 18 |
+
"channels": 7,
|
| 19 |
+
"range": [-1.0, 1.0],
|
| 20 |
+
"layout": {"albedo": [0, 3], "depth": [3, 4], "normal": [4, 7]},
|
| 21 |
+
"note": "depth is relative; normals are x right, y up, z toward the viewer"
|
| 22 |
+
},
|
| 23 |
+
"checkpoint": "checkpoints/best-l1-pruned10-ep19.ckpt",
|
| 24 |
+
"onnx": {
|
| 25 |
+
"onnx/shadenet5_mix_int4_int8.onnx": "ViT fc1/fc2 int8, everything else int4",
|
| 26 |
+
"onnx/shadenet5_mix2_int4_int8.onnx": "ViT fc2 int8, everything else int4"
|
| 27 |
+
},
|
| 28 |
+
"recommended_inference": {
|
| 29 |
+
"flip_avg": true,
|
| 30 |
+
"rot_avg_deg": 4.0,
|
| 31 |
+
"unit_normals": true,
|
| 32 |
+
"forward_passes": 6,
|
| 33 |
+
"command": "python infer.py <photos> --checkpoint best-l1-pruned10-ep19.ckpt --image-size 448 --enhanced"
|
| 34 |
+
},
|
| 35 |
+
"validation_mean_l1": {
|
| 36 |
+
"single_pass": 0.1763,
|
| 37 |
+
"enhanced": 0.1628
|
| 38 |
+
}
|
| 39 |
+
}
|