BiRefNet Explained: The Model Behind Our Background Remover
· 6 min read
BiRefNet is the AI model that powers background removal at BackgroundRemoverHD.com. When you upload a photo, it helps identify the main subject and separate it from the background, including detailed areas such as hair, fur and clothing edges.
But what exactly is BiRefNet, how does it work, and what makes it useful for everyday photos? This guide explains the technology in plain English, including what it can and cannot do.
What Is BiRefNet?
BiRefNet takes its name from bilateral reference, the approach introduced in its research paper. It is an open-source artificial intelligence model designed for image segmentation, particularly separating foreground subjects from their backgrounds.
The model was introduced in the research paper Bilateral Reference for High-Resolution Dichotomous Image Segmentation by Peng Zheng, Dehong Gao, Deng-Ping Fan, Li Liu, Jorma Laaksonen, Wanli Ouyang and Nicu Sebe.
At the time of writing, the arXiv page notes that the paper was published in CAAI Artificial Intelligence Research in 2024. Check the current paper page for the latest information.
The code and trained models are available through the BiRefNet repository on GitHub.
Unlike manually cutting out a subject with editing software, AI segmentation automatically estimates which parts of an image belong to the foreground.
That makes background removal accessible to people without photo-editing experience.
What Is Dichotomous Image Segmentation?
Dichotomous image segmentation sounds complicated, but the basic idea is straightforward.
It involves dividing an image into two categories:
- Foreground: The subject you want to keep, such as a person, animal or product.
- Background: The surrounding area you want to remove.
Imagine photographing a pair of shoes on a kitchen table. The shoes are the foreground, while the table, walls and other objects form the background.
An AI segmentation model predicts which image areas belong to the shoes.
However, real photographs rarely contain perfectly defined boundaries. Hair, transparent materials, shadows and reflections can make the distinction difficult.
For background removal, the predicted separation can be represented with a mask. A mask describes which areas should remain visible and which should become transparent.
Soft or graded mask edges allow partial transparency rather than forcing every edge pixel to be completely visible or invisible.
This helps create more natural-looking cut-outs.
Why We Use BiRefNet_dynamic
BiRefNet has multiple trained versions, sometimes called checkpoints.
A checkpoint is a specific set of trained model weights. Different checkpoints can be designed for different segmentation purposes.
BackgroundRemoverHD.com uses BiRefNet_dynamic on Hugging Face.
At the time of writing, its model card describes it as a general segmentation version that adapts to arbitrary image shapes. According to the card, it was trained on images of arbitrary shapes ranging from 256×256 to 2304×2304 pixels.
The GitHub repository lists its release for general use on 31 March 2025. Check the current model card and repository for updated details.
This flexibility matters because photographs come in different proportions.
A portrait photograph might be tall and narrow. A product photograph could be square, while a landscape image might be much wider.
A model designed to handle different image shapes is useful for a background remover intended for everyday photographs.
How BiRefNet Background Removal Works on Our Website
You do not need to install software or understand neural networks to use BiRefNet.
Our free online tool runs the model on our own GPU server.
Here is the process.
1. Upload your image
Visit BackgroundRemoverHD.com to remove a background.
You can upload JPG, PNG, WebP, GIF or BMP files by choosing files, dragging and dropping them, or pasting from your clipboard.
Our server accepts images up to 10 MB. Larger photos are automatically resized in your browser before upload, so results are at most 4,096 pixels on the longest side.
2. AI separates the subject
Your image is sent to our server, where BiRefNet performs segmentation.
The resulting mask guides which parts of the original photo should remain visible.
Our tool produces soft, graded edges and applies a colour refinement step to reduce unwanted background-colour halos.
This can improve the appearance of edges when the subject is placed on a different background.
3. Choose your background
After removal, you can select:
- None: Keep the background transparent.
- Colour: Choose a preset swatch or custom colour.
- Photo: Use a photo background.
- Blur: Apply a blurred background.
You can also adjust brightness, contrast and saturation.
4. Save your result
Download your edited image as PNG or JPG, or copy the image.
PNG preserves transparency when no background is selected. JPG uses a white background in that situation because JPEG does not support transparency.
You can add several images at once. They are processed one at a time, and Download all saves each result as a separate PNG.
Can BiRefNet Handle Hair and Fur?
Hair and fur are challenging because their boundaries are not always solid.
A portrait may contain hundreds of fine strands against a busy background. Animal fur can have similarly intricate outlines.
Our tool uses soft, graded edges rather than relying exclusively on hard cut-out boundaries.
Its colour refinement step also helps reduce halos caused by colours from the original background.
However, automatic removal is not perfect.
Very fine strands may disappear, and some background pixels may remain. Similar colours between the subject and background can make separation especially difficult.
For practical advice, read our guide to removing backgrounds around hair and fur.
Where Automatic Background Removal Can Struggle
Even a capable AI segmentation model cannot understand every photograph perfectly.
Some situations are especially difficult:
- Transparent objects: Glass and clear plastic reveal the background through the object.
- Similar colours: A white shirt against a white wall may have poorly defined boundaries.
- Complex scenes: Several overlapping people or objects can make the intended foreground ambiguous.
- Motion blur: Blurred edges provide less information about where a subject ends.
- Fine details: Thin wires, jewellery chains and loose hair may be partially removed.
Automatic segmentation is therefore best understood as a convenient starting point, not a guarantee of flawless results.
Our website does not include a manual erase or restore brush, so difficult cut-outs may require additional editing in another application.
It also does not provide a shadow-creation tool or dedicated crop and resize controls.
Tips for Getting Better Results
Good source photographs make background removal easier.
Start with a reasonably sharp image where the subject is clearly visible. Avoid excessive motion blur whenever possible.
Try to maintain visible contrast between the subject and the surroundings. For example, a dark product photographed against a lighter background may have boundaries that are easier to distinguish.
Check your lighting, particularly around hair, reflective surfaces and small details.
After processing, inspect the edges against different background colours. A cut-out that looks fine on white might reveal imperfections against dark grey.
You can also adjust brightness, contrast and saturation to improve the final appearance.
For a complete beginner-friendly walkthrough, see how to remove a background from an image.
Is Our BiRefNet Background Remover Free?
Yes. BackgroundRemoverHD.com is free to use, requires no sign-up and adds no watermark. The website is supported by advertising and made by Maiwar Game Studio.
We run the open-source BiRefNet model, licensed under MIT, on our own GPU server.
Uploaded images are sent only to our server, not to a third-party API, and are not stored.
There is no ZIP download or WebP export. Available downloads are PNG and JPG.
Where Can You Learn More About BiRefNet?
If you are interested in the research or technical implementation, these official resources provide a starting point:
- Research: Bilateral Reference for High-Resolution Dichotomous Image Segmentation
- Code and licence: ZhengPeng7/BiRefNet on GitHub
- Model details: ZhengPeng7/BiRefNet_dynamic on Hugging Face
The descriptions above reflect these resources at the time of writing. Check their current pages for any changes.
Try BiRefNet Background Removal for Free
Whether you are preparing product photos, profile pictures or creative graphics, BiRefNet makes automatic background removal straightforward.
Visit BackgroundRemoverHD.com to remove a background for free, without signing up or adding a watermark.
