{"by":"bring-shrubbery","descendants":46,"id":47995037,"kids":[47997730,47996413,47996194,47999648,47996007,47996508,47999850,47997752,47996977,48003143,48017154,47996708,47997406,48002824,47997877,47995061,47995916,48017177,48021412,47999892,47996524,47996958,47995505,47996441,47996646],"score":185,"text":"Hi HN, author here. SHARP is Apple&#x27;s recent single-image 3D Gaussian splatting model (<a href=\"https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2512.10685\" rel=\"nofollow\">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2512.10685</a>). Their reference code is PyTorch + a pretty heavy pipeline; I wanted to see if it could run in a browser with no server hop, so I exported the predictor to ONNX and ran it via onnxruntime-web with the WebGPU EP.<p>What works: drop in an image, get a .ply you can download or preview live, all on your machine — your image never leaves the tab. The model is large (~2.4 GB sidecar) so first load is slow on a cold cache, but inference itself is a few seconds on a recent Mac.<p>Caveats: SHARP&#x27;s released weights are research-use only (Apple&#x27;s model license, not the code&#x27;s). I host the exported ONNX on R2 so thedemo &quot;just works&quot;, but you can also export your own from the upstream Apple repo and upload locally.<p>Happy to talk about it in the comments :)","time":1777799696,"title":"Show HN: Apple's SHARP running in the browser via ONNX runtime web","type":"story","url":"https://github.com/bring-shrubbery/ml-sharp-web"}