Fe

FeyNoBg – Automatic background removal model and training library

Hacker News

FeyNoBg – Automatic background removal model and training library

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!

Share card

Actual performance

121points
29comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports, para, compatible · Missing: reddit linkedin, podcasting, created
92%92% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: model, google, models · Missing: mac, agents, macos
73%73% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: lua, ide, io · Missing: https docs, excited, just released
67%67% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: video, google, para · Missing: mobile apps, ios, personal
45%45% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: interface · Missing: plus, platform, intuitive
43%43% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Mu
MultiMatte, a Promptable Image Background Removal Model52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MultiMatte, a Promptable Image Background Removal Model

Hacker News57
Fu
Fully-automatic image background removal tool50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fully-automatic image background removal tool

Hacker News640
Im
Image Background Removal35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Image Background Removal

Hacker News15
co
colorSpace – A smart background removal tool41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

colorSpace – A smart background removal tool

Hacker News1
Clickmajic Background Removal
Clickmajic Background Removal48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Clickmajic saves you time and money when it comes to image background removal

AppSumo47
Im
Image background removal without annoying subscriptions53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Image background removal without annoying subscriptions

Hacker News383
junk removal tulsa
junk removal tulsa5%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

junk removal tulsa

Indie Hackers
Op
Open-source background removal in the browser57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Open-source background removal in the browser

Hacker News395
Im
Image segmentation and background removal in JavaScript38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Image segmentation and background removal in JavaScript

Hacker News60
ProMatte
ProMatte43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI background removal for OBS Studio

Indie Hackerscommitment-side-project