LibreAI / Image / BiRefNet
// image · ZhengPeng7/BiRefNet

BiRefNet

[CAAI AIR'24] Bilateral Reference for High-Resolution Dichotomous Image Segmentation

★ 4.2k stars⑂ 336 forksMITupdated 2026-09
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

BiRefNet is an open-source image project by ZhengPeng7 (ZhengPeng7/BiRefNet on GitHub). It has 4,245 GitHub stars and 336 forks, is released under the MIT license, and was last updated on GitHub on 2 September 2026.

GitHub stars
4,245
Forks
336
License
MIT
Last updated on GitHub
2 September 2026
Category
Image
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Choose the right tool

    Generation studio, upscaler, background remover, or photo library — match the tool to the task.

  2. Install it your way

    Desktop apps, Docker images, and portable builds cover most platforms; pick the simplest for your OS.

  3. Add models if needed

    Generation tools need checkpoint files; utilities like upscalers usually bundle everything.

  4. Create or organize

    Generate, enhance, or import — then export, share, or keep building your library.

// features

Why people love it

No subscriptions

The defining trait of this whole category: professional results without monthly fees.

Runs locally

Your images stay on your machine — important for client work and privacy.

Model freedom

Bring any compatible open checkpoint; you are never locked to one vendor's style.

Purpose-built utilities

Single-job tools (upscale, de-background, restore) that do one thing excellently.

Smart photo libraries

Self-hosted managers with AI tagging, face recognition, and deduplication.

Extensible ecosystems

Extensions, scripts, and community presets extend the popular studios far beyond stock.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/ZhengPeng7/BiRefNet.git
    cd BiRefNet
  2. Step 2 — Create an environment

    Isolate dependencies so nothing clashes with your other projects.

    python -m venv .venv
    source .venv/bin/activate  # Windows: .venv\Scripts\activate
  3. Step 3 — Install and launch

    Install the requirements, then follow the README's launch command (it varies per project).

    pip install -r requirements.txt
// use cases

What you can build

Advertisement
// faq

Questions, answered

Which should I start with?

For generation: a polished studio interface. For enhancement: a dedicated upscaler. For libraries: a photo manager. The guides above narrow it down.

Do I need a powerful GPU?

Generation benefits hugely from one; upscalers and photo managers are far lighter.

Who maintains BiRefNet?

It is an open-source project at ZhengPeng7/BiRefNet with 336 forks. Check the repo's contributors and recent commits to see how active maintenance is.

Are they free for commercial work?

Mostly yes under MIT/Apache/GPL — but verify each license, especially for client deliverables.

Can they match Midjourney quality?

With the right open checkpoints, absolutely — the interface matters less than the model you load.

Where do models come from?

Community hubs like CivitAI and Hugging Face host thousands of open checkpoints.

// keep exploring

Similar tools

Image

Insightface

State-of-the-art 2D and 3D Face Analysis Project

★ 29.9k starsCustom (check repo)
View guide →
Image

Fooocus

Focus on prompting and generating

★ 53.3k starsGPL-3.0
View guide →
Image

Nano_Banana_Pro_Web

High-performance Nano Banana image platform — Gemini power, up to 4K

★ 143 starsMIT
View guide →
Image

Bagel

ByteDance's open-source unified multimodal model for understanding, generation and image editing.

★ 6.2k starsApache-2.0
View guide →
// alternatives

Alternatives in Image

The most-starred other Image projects in the LibreAI catalogue — the realistic shortlist if BiRefNet is not the right fit.

Get BiRefNet

Free and open — grab the source, star the repo, and start creating.