frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://usefeyn.com/blog/feynobg/
20•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•22m ago
[flagged]
dang•6m 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•3m 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

MAI-Cyber 1

https://microsoft.ai/news/introducing-mai-cyber-1-flash-inside-mdash/
63•migmartri•1h ago•14 comments

Kimi-K3 on HuggingFace

https://huggingface.co/moonshotai/Kimi-K3
1047•nateb2022•11h ago•426 comments

Glue bonds to nonstick surfaces and wipes clean with ethanol

https://cen.acs.org/materials/adhesives/glue-bonds-nonstick-surfaces-wipes-clean/104/web/2026/07
73•gmays•4d ago•30 comments

The computer that helped win World War II

https://spectrum.ieee.org/colossus-computer-ieee-milestone
81•baruchel•4d ago•35 comments

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

https://usefeyn.com/blog/feynobg/
20•snyy•1h ago•3 comments

Decathlon Germany adds Wero payment option to decathlon.de website

https://www.sgieurope.com/e-commerce/decathlon-germany-launches-wero-payment-on-its-website/12239...
79•doener•1h ago•65 comments

Exploiting Volvo/Eicher's fleet platform to gain control over all users/vehicles

https://eaton-works.com/2026/07/27/my-eicher-hack/
28•EatonZ•2h ago•2 comments

UpCodes (YC S17) is hiring remote AE's to help make buildings cheaper

https://up.codes/careers?utm_source=HN
1•Old_Thrashbarg•1h ago

Removing React.js from the codebase and adapting Htmx for UI interactivity (2023)

https://misago-project.org/t/removing-reactjs-from-the-codebase-and-adapting-htmx-for-ui-interact...
161•Ralfp•8h ago•106 comments

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

12•pcdeni•4d ago•3 comments

Libsm64: Mario 64 as a library for use in external game engines

https://github.com/libsm64/libsm64
121•klaussilveira•8h ago•15 comments

Beckett the Prophet

https://theamericanscholar.org/beckett-the-prophet/
14•samclemens•5d ago•0 comments

Magnolias are so old that they're pollinated by beetles, not bees (2025)

https://mymodernmet.com/magnolia-ancient-flowers-beetles/
236•speckx•5d ago•85 comments

Paged Out #9 [pdf]

https://pagedout.institute/download/PagedOut_009.pdf
49•laurensr•3h ago•8 comments

Kimi-K3 Technical Report [pdf]

https://github.com/MoonshotAI/Kimi-K3/blob/main/k3_tech_report.pdf
304•vinhnx•2h ago•112 comments

First Robotic Satellite Servicer Launched

https://www.nrl.navy.mil/Media/News/Article/4551871/robotic-servicing-of-geosynchronous-satellite...
50•GlenTheMachine•3d ago•24 comments

How is the Bun Rewrite in Rust going?

https://lockwood.dev/ai/2026/07/27/how-is-the-bun-rewrite-in-rust-going.html
343•tomlockwood•6h ago•263 comments

VLC for Unity now supported on Linux

https://code.videolan.org/videolan/vlc-unity
110•martz•8h ago•33 comments

Should you wash your solar panels?

https://incoherency.co.uk/blog/stories/should-you-wash-your-solar-panels.html
161•surprisetalk•5h ago•135 comments

Building a Fast Lock-Free Queue in Modern C++ from Scratch

https://blog.jaysmito.dev/blog/04-fast-lockfree-queues/
74•ibobev•5d ago•32 comments

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

https://infrawrench.com
7•astrid__•1h ago•0 comments

Towards a Theory of Bugs: The Ruliology of the Unexpected

https://writings.stephenwolfram.com/2026/07/towards-a-theory-of-bugs-the-ruliology-of-the-unexpec...
47•nsoonhui•3d ago•17 comments

Modern email can be built from borrowed parts

https://en.andros.dev/blog/d7ed8b07/modern-email-can-be-built-from-borrowed-parts/
116•andros•9h ago•57 comments

The Birth of the American 12-string Guitar (2013)

https://www.harpguitars.net/history/grunewald/12-string.htm
62•bilegeek•7h ago•35 comments

Shay Locomotives

https://www.shaylocomotives.com/
55•Rygian•8h ago•14 comments

AI companies spend record sums on Washington lobbying

https://www.ft.com/content/d8a5f95e-3b6d-463a-a848-c9ef8e2394db
195•1vuio0pswjnm7•3h ago•94 comments

PGSimCity - How PostgreSQL Works

https://nikolays.github.io/PGSimCity/
841•jonbaer•17h ago•82 comments

The Proof Machine (2016)

https://incredible.pm/
25•BenoitP•5h ago•4 comments

Elevated errors on Claude Opus 5

https://status.claude.com/incidents/mfdtrknpxghq
74•croemer•6h ago•55 comments

Nvidia's $750B in Deals Reignite Circular AI Fears

https://www.bloomberg.com/news/articles/2026-07-27/nvidia-s-750-billion-deals-revive-fear-of-ai-c...
63•petethomas•2h ago•44 comments