Skip to content
W

Webgpu Sam2

Segment Anything 2, 100% in the browser (with WebGPU!)

by lucasgelfondFree

#541in Education
0In stores

Description

WebGPU Segment Anything 2 runs Meta's Segment Anything 2 model entirely in the browser, using WebGPU for acceleration. You upload an image,…

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

S

Sipp

AI inference, packed simply

AI
Launch
P

Prompt → Diagram

Gemma 4 E2B in desktop Chrome (WebGPU)

AI
Launch
V

vgpu

Build, debug, test, and optimize WebGPU projects

AI Skills
Get
G

Gpt2 Webgl

A browser-based, WebGL2 implementation of GPT-2

AI
Launch
W

Web LLM

High-performance In-browser LLM Inference Engine

AI
Launch
W

webgpu-claude-skill

WebGPU applications with Three.js

AI Skills
Get

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

Developer Stuff

Badges