{ "model_name": "ShadeNet-6-L", "task": "intrinsic-decomposition", "architecture": "pre-refiner (dense 16x16 patch net) + main model (frozen DINOv2 ViT-B/14, conv detail encoder, wide decoder, input patch dictionary) + map refiner, stop-gradients between parts", "backbone": "facebook/dinov2-base", "parameters": 98351352, "trainable_parameters": 11770872, "image_size": 448, "supported_image_sizes": [ 448, 896 ], "input": { "name": "photo", "channels": 3, "range": [ -1.0, 1.0 ], "note": "RGB photo; height and width multiples of 14 and 32" }, "output": { "name": "maps", "channels": 7, "range": [ -1.0, 1.0 ], "layout": { "albedo": [ 0, 3 ], "depth": [ 3, 4 ], "normal": [ 4, 7 ] }, "note": "depth is relative (larger = farther); normals are x right, y up, z toward the viewer" }, "checkpoint": "checkpoints/shadenet6-l.ckpt", "checkpoint_note": "fp32, inference only (no optimiser, no training discriminator); epoch 9 of the PatchGAN phase", "onnx": { "onnx/shadenet6_l_int8.onnx": "int8 weights, block-wise, fixed 448x448: input input_rgb [1,3,448,448] in [-1,1], output maps [1,7,448,448] with unit-length normals; mean L1 0.1233 vs 0.1234 for fp32; 103 MB; not faster than fp32 on the CPU", "onnx/shadenet6_l_int4.onnx": "int4 weights (lossy), same interface; mean L1 0.1311 (albedo 0.1404); 55 MB; slower than fp32 on the CPU", "onnx/shadenet6_l_int8_refined.onnx": "int8 weights with the separate refiner built in (clamp + unit normals after it): same interface as the plain files; mean L1 0.1223; 107 MB; not faster than fp32 on the CPU", "onnx/shadenet6_l_int4_refined.onnx": "int4 weights with the separate refiner built in: mean L1 0.1299 (albedo 0.1376); 59 MB; slower than fp32 on the CPU", "onnx/shadenet6_l_refiner.onnx": "the refiner alone (3.7 MB): inputs photo [1,3,448,448] and maps [1,7,448,448] (a model's maps), output refined [1,7,448,448] (clamped, unit normals); after the plain int8 file 0.1223, after the plain int4 file 0.1299" }, "inference_script": "inference/run.py", "recommended_inference": { "mode": "single pass", "command": "python inference/run.py --checkpoint checkpoints/shadenet6-l.ckpt --out out/", "mirror_average": "add --mirror (2 passes, mean L1 0.1213 vs 0.1232)", "with_refiner": "add --refine (mean L1 0.1223 single pass; 0.1207 with --mirror, the best recipe measured)" }, "validation_mean_l1": { "note": "23 held-out images, same images and masking as ShadeNet-5's numbers below; checkpoint chosen on these images", "shadenet6_l_single_pass_unit_normals": 0.1232, "shadenet6_l_single_pass_raw_normals": 0.1244, "shadenet6_l_mirror_average": 0.1213, "shadenet6_l_six_passes": 0.1223, "shadenet5_single_pass_unit_normals": 0.1659, "shadenet5_plus_refiner": 0.1597, "shadenet5_six_passes": 0.1562, "shadenet6_l_single_plus_refiner": 0.1223, "shadenet6_l_mirror_plus_refiner": 0.1207 }, "forward_time_ms_rtx5060ti_bf16": 39.4, "refiner": { "file": "refiner/refiner.pt", "parameters": 911000, "note": "optional separate map refiner (width 32, 4 levels) run after the model on the photo + the model's clamped maps; distilled without labels from a 7-pass test-time ensemble of the model on 8,016 CC BY 2.0 Open Images photos (refiner/attribution.csv); mean L1 0.1232 -> 0.1223 single pass, 0.1213 -> 0.1207 with the mirror average" } }