Split wipe & live post-processing (0 ms)
Loading starter photograph…
Inside U-2-Netp
Alpha distribution (16 bins · log scale)
Verified ONNX runtime contract
- Repository
- BritishWerewolf/U-2-Netp (Apache-2.0)
- Weight file
- onnx/model.onnx · 4,574,861 B (4.57 MB fp32)
- Runtime
- onnxruntime-web@1.21.0 · CPU WASM EP (Web Worker)
- Why raw ORT
- Transformers.js 3.7.5 lacks U2NetImageProcessor
- Input tensor
- input.1 [1, 3, 320, 320] ImageNet RGB letterbox
- Outputs
- 7 maps: 1959 (d0 fused) + 1960–1965 (d1–d6 RSU)
Show the code — ImageNet RGB CHW preprocessing (rgbaToU2NetFloat32CHW)
Show the code — Off-main-thread onnxruntime-web@1.21.0 7-output inference
Explore the U-2-Netp use-case ladder
Basics · 7-Stage Nested-U Pyramid
Inspect all 7 real ONNX outputs (d0 fused + d1–d6 RSU), hover-probe pixel probabilities, and compare letterbox vs stretch.
Practical · Batch Cutout Queue
Process multiple assets offline with Pause, Resume, Cancel, tight-crop presets, PNG downloads, and formula-safe CSV/JSON manifests.
Wild · Robustness Stress Lab
Perturb scale, occlusion, sensor noise, and low light to measure live Mask IoU & Dice retention with a TP/FP/FN diff map.
Multi-model · Cutout → TinyCLIP
Chain U-2-Netp (4.57 MB) into TinyCLIP ViT-8M/16 (24.28 MB) to measure zero-shot confidence shift after removing background clutter.