Repository navigation
Using bg be gone
bg-be-gone has three pages, one per job. Single cuts the background out of one image, Batch does a whole folder, and Segment splits a picture into objects so you keep only the ones you want.
They all start the same way: open an image, let the model think, save what you like.
- Opening an image: the four ways in.
- Single: one image
- Batch: a whole folder
- Segment: pick objects
- Canceling, and when things go wrong
Every shortcut, with a picture of the moment it helps, is on Hotkeys.
Any of these works:
- The folder button at the top left.
- Drop a file anywhere on the window.
- Ctrl+O.
- Ctrl+V pastes an image, or an image file you copied in your file manager.
You can also open an image straight from your file manager with Open with → bg-be-gone.
An image stays on the page it was opened on. Batch has no room for a single image, so one dropped there opens on Single; drop a folder on Batch instead.
bg-be-gone reads PNG (animated too), JPEG, WebP (animated too), GIF, AVIF, HEIC, TIFF and BMP.
Single, after Generate: the source on the left, the cut-out on the right, on a checkerboard where it's transparent.
- Open an image. Stills, animated GIFs and animated WebPs all open the same way.
- Pick a Subject in the sidebar, or leave it on General.
- Click Generate (or press Ctrl+Return).
- Click Save result… You get PNG or WebP, which keep the transparency, or JPEG once the background is flattened.
-
Subject picks the model by what's in the picture:
Subject Model Good for General (objects, scenes) BiRefNet General Almost everything. The default. Person / portrait BiRefNet Portrait People, hair. Anime / illustration IS-Net Anime Flat-colored drawings. Fast (lower quality) U²-Net Old or slow machines. Custom model… any you pick Shows a Model row with the whole list. The row's subtitle names the model, its download size and the video memory it needs, so nothing surprises you.
-
Alpha matting, under Subject, works the edges again for hair and fur. It's a little slower. Switching it changes the result on screen without running the model again.
-
The background is the button in Result's header (it says Transparent at first). Pick transparent, a blur of the original, white, black, green screen, or a color of your own. Blur has a strength that looks the same on any photo size.
-
Animations: every frame is cut out, and the result saves in the source's format. GIF only knows "see-through" and "not", so a transparent GIF gets hard edges. Animated WebP keeps the soft ones.
-
The two panels each have their own view. Scroll zooms, drag pans, double-click flips between fit and 100%. The header buttons, or a right-click, rotate and flip.
-
Advanced, when it's there, picks the engine that runs the model (PyTorch or ONNX Runtime), and full precision instead of the default half. GPU support explains when you'd want either.
Tip
The footer names the device that actually ran the model, like AMD (ROCm) or CPU. If you were hoping for your GPU and see CPU, GPU support is the page for you.
Batch, after a run. Each tile has a check; the round button on a finished one flips it between the original and its result.
- Choose an input folder, or drop one on the page. Its images show up as tiles.
- Choose an output folder.
- Uncheck anything you want left out.
- Click Run batch (or press Ctrl+Return). Then go make tea.
-
The gallery shows 20 tiles at a time; the Show 20 more tile at the end adds the next 20. Click a tile, or its check, to keep it in the run or leave it out. Select all and Select none do the lot.
-
Output is the batch's own, separate from Single's: Remove the background, Blur it, or put the subject on a Color. The preview shows it on a sample picture. Subject and Alpha matting come from the sidebar, shared with Single.
-
Format. Original, the default, keeps each image's own format. An image only becomes PNG when its own format can't hold the result:
- JPEG, BMP and GIF with a transparent background (no transparency, or no soft edges),
- HEIC, which bg-be-gone reads but can't write.
The Output card counts those, and the name preview says why. PNG, WebP and JPEG write every still in that one format (JPEG only with Blur or Color).
-
Rename pattern.
{name}is the original file name and{n}its number in the run, so{name}_nobgturnscat.jpgintocat_nobg.png. The first image's result name shows beside it as you type. -
Nothing is ever overwritten. If a name is taken, the result gets
(2),(3)and so on, even when the output folder is the input folder. -
A bad file doesn't stop the run. Each tile shows how its image went: waiting, working, done or failed. When the run ends, a short note at the bottom says how it went. If anything failed, a dialog lists each file and why, with Open folder to go and look.
-
Animations (GIF, WebP and animated PNG) keep every frame and their own format; the Format choice is for stills. A running tile counts its frames.
Segment after Find all objects, with three objects kept: the character and the leaves in two corners. Kept objects have a solid blue outline on Source, Result shows only them, and their eyes are open in the Objects panel.
Segment is one workspace: Source, where you click; Result, which shows what Save will write; and the Objects panel on the right, like a drawing app's layers. The button at the right end of the toolbar shows and hides it. In a wide window it docks after Result; in a narrower one it slides in over Result while you need it.
- Open an image.
- Click the thing you want. A badge by the pointer always says what a click will do, before you click.
- Or click Find all objects (Ctrl+Return) to have every object found for you, then click the ones to keep.
- Click Save… (Ctrl+S). It saves what Result shows.
- Find all objects scans the whole picture. A soft shimmer sweeps Source while it works, and the objects it finds arrive as suggestions: faint outlines, not kept yet. Detail, in the sidebar, sets how finely it looks; finer finds more, but takes longer. Esc stops it, and the Objects panel stays as it was.
-
Click on nothing known, or drag a box around something, and a new object starts. Its outline shows first, as a draft, before anything is kept:
- click to add a part (+), Ctrl-click to take one away (−),
- drag the box's handles to resize it,
- Ctrl+Z steps back one point or box,
- Keep (or Enter) keeps it; Discard (or Esc) drops it.
- N makes the next click or box a fresh find, even on top of objects bg-be-gone already knows.
What a click does depends on where it lands. The badge by the pointer says which, with the same glyph every time:
| Glyph | You click… | It does |
|---|---|---|
| + | a suggestion | Keeps it. |
| ○ | inside a kept object | Un-keeps the largest one there, whole. |
| − | with Ctrl held, on an object inside a kept one | Cuts it out of the kept one, leaving a hole. |
| ↩ | a hole a cut left | Puts the cut back. |
- Objects inside objects: a face sits inside a person, an eye inside the face. Shift+scroll, or Up and Down, walks through everything under the pointer, and the badge shows where you are (◆◇◇ 1 of 3).
- Whole photo, the panel's first row, keeps everything at once. Then Ctrl-click to cut out what shouldn't be there: handy when it's easier to say what goes than what stays.
- The Objects panel has one row per object, with an eye to keep or un-keep it. Objects found inside another sit under it, and the arrow beside a row folds them away. The ⋮ at the panel's top has Keep all wholes, Keep none (Ctrl+Shift+A) and Combine….
- A row's own actions (Edit shape, Rename…, Delete and more) are on a right-click, or the Menu key or Shift+F10 when the row has the focus.
- Combine makes several kept objects one: choose Combine…, check them in the panel or click them, then click Combine.
- Undo and redo (Ctrl+Z, Ctrl+Shift+Z) cover all of it, and their tooltips name the step they'll take back.
Sometimes the model gets close, but not quite. Edit shape fixes it by hand. Point at the object and press E, or press Enter on its row in the Objects panel.
- Points (1) adds and removes points, like a new object's.
- Paint in (2) and Paint out (3) are a brush. It follows the picture's edges, so paint stops at an outline instead of spilling past it, and you see where it lands while you drag. Keep the brush's center on what you're painting. Hold Shift to paint the whole disc instead.
- [ and ] make the brush smaller and bigger.
- Apply (Enter) keeps the new shape; Discard (Esc) leaves the object as it was.
| Row | What it does |
|---|---|
| Model | Which model finds objects: SAM 2.1 (Meta's Segment Anything) in Large, Base+, Small or Tiny, or the small MobileSAM. Auto checks your free video memory each time it loads, and takes the biggest that fits. The row says which one it picked, and why. |
| Detail | How finely Find all objects looks. |
| Alpha matting | Softer edges for hair and fur, in Result and in what's saved. It's the same setting as Single's. |
| Clean up specks and holes | Drops stray dots and fills pinholes. Turn it off to keep tiny parts and real openings. |
| Smooth edges | Evens out the dotted fringe where the model is unsure. Turn it off to keep the edge exactly as found. |
| Show overlapping objects after | How long to rest the pointer before faint lines show the other objects under it. |
| Pointer labels | Auto shortens the badge to its glyph once you know the ropes; Always full never does. |
Note
Clean up and Smooth edges apply to objects found from then on. Objects you already have keep the edges they were found with.
- Save… writes what Result shows, with the same background choices as Single (the button in Result's header). It waits while a find or an edit is still open, and says why beside the button.
- Your objects stay when you switch pages. Leaving Segment frees the model's memory, and unfinished work picks up again when you come back. Opening another image starts fresh.
- Esc stops what's running: a single image, an animation, a batch, a Find all, or a first model download. On Segment, it first backs out of whatever you're in the middle of. The order is on Hotkeys.
- Errors stay on screen until you dismiss them, in plain words, with Open log for the details.
- If the background process stops, a banner says so, with where its log is, and offers Restart.
bg-be-gone remembers your folders, subject, background and window size between launches.
Getting started
When you need it