Description
WebGPU Segment Anything 2 runs Meta's Segment Anything 2 model entirely in the browser, using WebGPU for acceleration. You upload an image, or drag and drop one, or click to load a demo image, and the model segments the objects in it. You can choose between Tiny, Small, Base and Plus model sizes, and Base Plus is marked as recommended. The model itself is by Facebook Research. The page explains the browser requirement: it works in Chrome version 113 or later with the unsafe WebGPU flag enabled. The site says Firefox and Safari have their own WebGPU status, which you can check on the official implementation status page. The project was built by Lucas Gelfond in San Francisco. A writeup and the source code are linked from the page, so you can see how it works and run it yourself.…
Highlights
- Segment Anything 2 in the browser
- WebGPU acceleration
- Tiny, Small, Base and Base Plus model sizes
- Upload, drag and drop or demo image
- Source code and writeup linked
Ratings & Reviews
No ratings yet
Be the first to rate Webgpu Sam2.
People also visit
Webgpu Sam2 FAQ
What does it do?
It segments objects in an image you upload, using Meta's Segment Anything 2 model running in your browser.
Which browsers work?
The page says Chrome version 113 or later works, with the chrome://flags unsafe WebGPU flag enabled. It points to the WebGPU status page for Firefox and Safari.
Which model size should I pick?
The page lists Tiny, Small, Base and Base Plus, and marks Base Plus as recommended.
Is the source available?
Yes. The page links to the source code on GitHub and to a writeup.
What are the best Webgpu Sam2 alternatives?
Popular alternatives to Webgpu Sam2 include GPU.js. See all Webgpu Sam2 alternatives








