Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
byoussef 
posted an update 2 days ago
Post
2,974
Depth Pro 2 now runs in the browser on WebGPU.

I converted Apple's Depth Pro 2 (sizes S and B, plus the field-of-view model) to LiteRT, so it runs on the GPU through LiteRT.js. In Chrome on an M1 MacBook Pro, S takes about 320 ms a frame at 480x854 and B about 800 ms, in float16.

Demo, with your own photos or the webcam (nothing leaves your machine): byoussef/DepthPro2-WebGPU

Files, JS and Python usage, and the export script: byoussef/DepthPro2-litert

Unofficial, and research use only under Apple's model license. Original model: apple/DepthPro2
In this post