frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: FeyNoBg – Automatic background removal model and training library

https://usefeyn.com/blog/feynobg/
26•snyy•1h ago
Hey HN, I’m Shreyash from Feyn. We help companies build custom models from their data.

Today, we’re releasing FeyNoBg, an automatic background removal model. Alongside it, we're open-sourcing NoBg, the Python library we built to train and run it.

Try the model here: https://huggingface.co/spaces/feyninc/feynobg. Check out the library here: https://github.com/feyninc/nobg

Some sample outputs:

(1) Soccer Freekick: https://drive.google.com/file/d/1MZkAGLwbhNVOZ0Oi7XvpCfSEu9Q...

(2) Hair in wind: https://drive.google.com/file/d/1Odc2m0XMVH9uZtvI_KjaRbXzhLL...

(3) Bicycle with visible spokes: https://drive.google.com/file/d/1h99ahjfrtS1MFQJJgiKE2fuM3HZ...

(4) Live Demo video: https://youtu.be/b1heHPvY8BM

Background removal separates an image's subject from its surrounding. We've all tried it at some point. Often it is to reuse the subject in a different artifact. Nowadays, it is common to make chat stickers out of it. It is one of the most common but under-appreciated uses of AI. It is also surprisingly complex. Models can be easily confused by camouflage, motion blur, or fine structures like hair.

The task requires two skills. First, a model has to identify the foreground. Second, it has to trace the foreground’s boundary and estimate an opacity value for each pixel. Generally, these skills are taught with different datasets. That creates a failure point. A poor training mix can improve one skill at the expense of the other. We saw this in our controlled evaluation. A training run with just the MaskFactory dataset improved on the CAMO benchmark but regressed on DIS5K.

For FeyNoBg, we took an interpretability-first approach to training. We first studied how BiRefNet’s stages contribute to finding the foreground and reconstructing its boundary. We discovered that the third stage of it's feature extractor holds a lot of information. Both localization and boundary reconstruction depend heavily on the feature map produced here.

This led us to expand this stage from 18 to 24 blocks while preserving the pre-trained weights. We then trained FeyNoBg on 26.1K diverse examples assembled from 10 datasets. The goal was to improve foreground identification and boundary precision without sacrificing either one.

Across eight benchmarks, FeyNoBg achieves the best published score on four and comes within 2% of the leader on the rest.

Building FeyNoBg also exposed a tooling problem. Image matting models are usually released as isolated repositories with incompatible preprocessing, training, and evaluation code. We built NoBg to solve this. NoBg puts these workflows behind one Python interface. It supports BiRefNet today, with more architectures coming. We hope you build something exciting with it!

Happy to answer any questions!

Comments

bickov•43m ago
[flagged]
dang•27m ago
Can you please not post AI-generated or AI-edited comments to HN? It's not allowed here - see https://news.ycombinator.com/newsguidelines.html#generated and https://news.ycombinator.com/item?id=47340079.

Of course, it's impossible to know for sure what was LLM processed or not, but some of your posts (like this one) have been getting classified that way.

snyy•24m ago
The 4K cap was a judgement call, we didn't want one source to dominate. The license is cc-by-nc, just added it to the hugging face
nickludlam•15m ago
This looks great! What are the resolution limits? From the GitHub readme I saw mention of 1024x1024, but I was able to process an image 1920x2880 just fine. I didn't see any really obvious scaling artefacts, so is there something clever happening behind the scenes?
defmetrix•14m ago
This is awesome, I just bookmarked your tool. Ive been looking for something simple to use, since Its not easy to use the segment anything tool anymore. Thanks!
snyy•7m ago
Thanks! Feel free to open an issue if you run into any issues with the outputs

https://github.com/feyninc/nobg/issues

geooff_•3m ago
I love seeing this. Background removal is such a core task used in so many systems, I group it in with speech to text in terms of importance.

I love seeing maturity getting pushed in this space. Congratulations to you and the team!

Show HN: FeyNoBg – Automatic background removal model and training library

https://usefeyn.com/blog/feynobg/
27•snyy•1h ago•8 comments

Show HN: Running PrismML's Bonsai inside DRAM by breaking DDR4 timing rules

17•pcdeni•4d ago•4 comments

Show HN: Infrawrench – a tool to manage cloud and svcs with workflows and chat

https://infrawrench.com
8•astrid__•2h ago•0 comments

Show HN: Darkslide – A keyboard-centric photo editor

2•roman-volkov•1h ago•0 comments

Show HN: Physically accurate black hole you can put in your room

https://blackhole.plav.in
451•aplavin•4d ago•164 comments

Show HN: Pure-PHP server outperforms NginX for static files + 10x PHP throughput

https://github.com/Qbix/webserver
4•EGreg•3h ago•0 comments

Show HN: 1,250 SwiftUI components, and an MCP that writes them into your app

https://nibware.dev/
4•leonickson•3h ago•4 comments

Show HN: multiaes – hardware-accelerated, constant-time AES, two-file drop-in

https://github.com/ttarvis/multiaes
3•lemaudit•3h ago•0 comments

Show HN: Watch 14-Byte AI "brains" attempt to solve a 2D maze (Its hard)

https://con-dog.github.io/MINIMIO-PUBLIC-FRONTEND/
20•purple-leafy•11h ago•4 comments

Show HN: Pilot Protocol – a network where AI agents find tools and each other

6•teocalin37•4h ago•4 comments

Show HN: Tilde Pay – Give your AI agent a bank account to pay for things

https://my.tildepay.ai/
2•solsol94•4h ago•1 comments

Show HN: Dozenal – A Game of Spatial Arithmetic

https://dozenal.game
13•sarreph•7h ago•8 comments

Show HN: Watch random code typed out on an MS-DOS IDE

https://hackerman.specr.net/
14•vunderba•14h ago•6 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
245•pompomsheep•1d ago•85 comments

Show HN: Descript wanted $24/mo, I built an open-source alternative in a weekend

https://github.com/wassgha/rescript
35•wassimgr•12h ago•27 comments

Show HN: I mapped every US golf course

https://golfcoursebrowser.com/
214•rickmf•1d ago•161 comments

Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

https://github.com/gmrandazzo/CheapSecurity
135•zeldone•1d ago•34 comments

Show HN: Case study: A coding agent refactors a 750k LOC app, no code review

5•bonjourjoel•5h ago•0 comments

Show HN: PumpProof – Scores a hyped stock's dilution risk from its SEC filings

https://pumpproof.com
5•jekjek•6h ago•0 comments

Show HN: Tool to turn a repo into map

https://codemap.gitbiased.com
4•skyfantom•6h ago•1 comments

Show HN: Turn SSH X11 Forward to WebSocket – remote apps flow to you workstation

3•kbradero•7h ago•1 comments

Show HN: Horus-runtime – High Performance Computing workflow manager

https://github.com/temple-compute/horus-runtime
2•chdominguez•7h ago•0 comments

Show HN: JavaScript/JSON and CSS minifier lib in minimal C89

https://fossil.wanderinghorse.net/r/cssminc/doc/ckout/README.md
3•sgbeal•8h ago•0 comments

Show HN: Echo – Fable-level results at 1/3 the cost using open-weight models

479•adam_rida•3d ago•223 comments

Show HN: Markwright – a 2MB native screen annotator with no telemetry

https://www.aloneguid.uk/projects/mw/
2•aloneguid•8h ago•1 comments

Show HN: Paper – A Journaling CLI for Developers

https://paper.rewrlution.com
9•dmsehuang•19h ago•11 comments

Show HN: Agent Console – A Local Dashboard for Codex and Claude Code

https://github.com/buhuipao/agent-console
2•buhuipao•8h ago•0 comments

Show HN: Gitwig – Mouse-drivable Git TUI and multi-repo dashboard in Rust

https://gitwig.dev/
2•tareqmy•9h ago•0 comments

Show HN: We built an MCP server for document generation

https://docuqueue.com/#mcp
3•dvcoolarun•9h ago•0 comments

Show HN: adCasa OS – AI marketing workspace built with Bayesian attribution

https://adcasa.io/
2•adcasa•10h ago•0 comments