cd /news/computer-vision/show-hn-bg-be-gone-cut-out-people-pe… · home › topics › computer-vision › article
[ARTICLE · art-179169] src=github.com ↗ pub= topic=computer-vision verified=true sentiment=↑ positive

Show HN: Bg-be-gone – Cut out people, pets and anime art, all on your own PC

A developer released bg-be-gone, a local desktop app that removes backgrounds from photos of people, pets and anime art using the BiRefNet segmentation model and Meta's Segment Anything (SAM), with edge-snapping brush corrections built on top of SAM. The app supports GIFs, WebP and batch processing, and runs entirely on the user's own PC. The developer said BiRefNet general avoids the poor cartoon and anime outlines common in freemium background-removal tools.

key takeaway

Pairing BiRefNet general segmentation with SAM-based click-to-segment and edge-snapping brush corrections lets users isolate individual subjects in multi-subject images and get clean cartoon/anime outlines that freemium tools miss.

read1 min views11 publishedDec 1, 2026

bg-be-gone is an app I built initially with the goal of removing the background from my spouse's pictures in FFXIV, but then I really got interested in the ML side of this!

That led me down the rabbit-hole of learning about BiRefNet and alternatives, and eventually I also stumbled into Facebook (now Meta's) segment-anything (SAM).

I've been using this pretty heavily for background removal, but one thing that most freemium BG removal tools (or bucket-fill magic wand without some feathering/etc) is getting nice outlines of cartoons/anime.

Using BiRefNet general, there's not really this issue! I then had to deal with the fact that BiRefNet tries to infer a subject in images. Normally. But there could be multiple.

Well, they handle that, but they don't handle if you wanna crop out just one, or focus on something non-obvious.

Then I remembered that my iPhone used to allow me to hold on an object in an image and it'd get a segment. Found out that uses their version of SAM. Implemented it myself.

This thing's so awesome! There's so many things I built on top of it with Claude which allow me to give the model a hand! We ended up with a very nice experience where we can fix the model's mistakes and do some pretty amazing crops of subjects on very convoluted images.

The thing is, this is not like touching up with the wand in PhotoShop. I use a brush, but it snaps to edges based on what the model infers, so the outlines DON'T LOOK LIKE SHIT!! It's amazing!

Anyway. It also supports GIFs, WebP, batches, etc! I think it's pretty awesome and I'm happy and proud with it! I'd love if it helped anybody!

Comments URL: [https://news.ycombinator.com/item?id=50711166](https://news.ycombinator.com/item?id=50711166)

Points: 1

── more in #computer-vision 4 stories · sorted by recency
── more on @bg-be-gone 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-bg-be-gone-c…] indexed:0 read:1min 2026-12-01 · —