Skip to content

Releases

bg-be-gone 1.2.1

Choose a tag to compare

@github-actions github-actions released this 01 Dec 09:12
b954501

A bug-fix release: 18 bugs, each one reproduced in the app before it was fixed. Most were found by a review of 1.2.0, and most are older than 1.2.0. Updating is just installing, as before.

Segment after un-keeping and keeping an object again: 1.2.0 on the left shows an empty Result, 1.2.1 on the right shows the kept object.

Segment

  • Finds no longer sit "Paused" after a trip to another tab. A visit with nothing pending left every later find paused until a second visit away and back.
  • Result draws again when what you keep comes back. Un-keeping and keeping again, or Undo then Redo, left Result on "Your result appears here".
  • Photos turned by their EXIF orientation work. Result used to fail on them, with Save stuck.
  • 16-bit grayscale images keep their grays, instead of rendering and saving white.
  • Animated GIFs: keeping Whole photo no longer waits forever for a model, and Result survives a model reload.
  • An old toast can't touch a new image. Opening another image takes down the last one's "Undo" and "Show" toasts.
  • Space released on another tab or window no longer leaves the picture panning. The same goes for Single.
  • Changing Engine keeps the Model you picked, and says so if the new engine doesn't offer it.

Saving

  • Animated PNGs keep every frame on Single, as they already did in Batch.
  • Result's rotate and flip carry into saved GIFs and WebPs, with every frame turned and the timing kept.
  • A background change keeps Result's rotation.
  • Your photo's color profile is kept in Single's saves, and in Batch's WebP, JPEG, AVIF and TIFF output.
  • A file that fails to open no longer freezes the GIF that was playing.

Batch

  • Long file names work: temporary files no longer push a long but legal name past the file system's limit. A name that's truly too long is shortened to fit, and the finished toast says so.
  • Long names in the folder no longer stretch the window to thousands of pixels.

The wiki covers installing, GPU support and every shortcut. GitHub's list of every merged change follows below.


What's Changed

  • Send Segment's finds at once after a visit that held nothing by @cristeigabriela in #89
  • Render Result again when what was kept comes back after nothing was by @cristeigabriela in #90
  • Write Batch results with long names, and keep long names from widening the window by @cristeigabriela in #91
  • Give Segment one input per opened image: upright, 8-bit, with its color profile by @cristeigabriela in #92
  • Let go of held keys, take down an image's toasts, and keep the Model across Engine changes by @cristeigabriela in #93
  • Keep what Single shows when it saves: animated PNGs, turns, color profiles by @cristeigabriela in #94
  • Set the version to 1.2.1 by @cristeigabriela in #95

Full Changelog: v1.2.0...v1.2.1

bg-be-gone 1.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 05:09
fc4c6c8

Segment is rebuilt from the ground up, the models need about half the VRAM, and removing a background is twice as fast. Your saved settings carry over, so updating is just installing.

Find all objects scanning a drawing with a soft shimmer, then revealing the objects it found. Art by froggercube (Bluesky).

Contents: Segment, rebuilt · Half the VRAM · Faster · Fixes · Updating


Segment, rebuilt

The old Segment page had two modes that didn't talk to each other. The new one is a single workspace: find objects, keep the ones you want, cut them apart, and touch up their edges, all in one place.

Segment after Find all objects: the character and two clusters of leaves kept on Source, Result showing only them, and the Objects panel on the right with their eyes open. Art by froggercube (Bluesky).

  • Find, then keep. Find all objects, click, or drag a box. A find waits as a draft, with handles and points, until you press Keep or Enter. Ctrl+Z steps back inside a draft.
  • A layers panel on the right, the way an image editor has one. Eyes show and hide objects, and a part nests under its whole. Right-click a row for its actions.
  • Cuts. Cut one object out of another, for example a pocket out of a shirt. Ctrl over an object shows what the cut would take, hatched.
  • Edit shape, with a brush that knows where the edges are. Paint in or paint out, and the stroke follows the photo's edges while you drag. Shift paints the plain disc.
  • It tells you what you can't see. An edit that would change an object off screen asks first. A change that lands off screen shows a toast with a Show button.
  • The motion is back, because a tool you use for hours should feel alive: the scan shimmer, the reveal, the marching outline and the hover glow. Drawing got lighter too: hovering a 4000×6000 photo full of objects runs at 97 fps.

The brush, while you drag. It hugs the edge as you paint, and after you let go there's about 50 ms left to wait. On the left, the same stroke from an earlier build of this release, which showed the plain disc until release:

Paint out along a cat's ear: an earlier build on the left shows a round brush until release; 1.2.0 on the right follows the ear's edge while dragging.

Cleaner edges. Where SAM 2.1 is unsure, its masks come with a dotted fringe and pinholes. Two switches, both on by default, clean them up for objects you find from then on:

  • Smooth edges evens out the fringe. Across 1,555 test masks, the stray dots went from 703 to 12.
  • Clean up specks and holes fills pinholes, but keeps real openings.

A mask's outline on an unsure cheek edge: with Smooth edges off, a trail of stray dots; with it on, one clean line.


Half the VRAM

PyTorch now reserves VRAM in growable chunks (expandable segments) instead of big fixed blocks. Find all also sends its grid through SAM 16 points at a time instead of 64. BiRefNet runs in half precision (fp16) by default: across 64 test pictures, its cut-outs overlap full precision's by 99.98% (the median, for General).

Measured on AMD, every model needs about half the VRAM. So a 4 GB card can now run SAM 2.1 Large, the best Segment model.

Peak VRAM of the background process on an RX 6750 XT (PyTorch on ROCm):

Model 1.1.0 1.2.0
BiRefNet General (backgrounds) 5,326 MiB 2,239 MiB −58%
BiRefNet Lite 3,642 MiB 1,211 MiB −67%
SAM 2.1 Large (Segment's best) 5,184 MiB 2,571 MiB −50%
SAM 2.1 Tiny 4,354 MiB 1,263 MiB −71%
MobileSAM 4,258 MiB 923 MiB −78%

Note

On NVIDIA, all three changes apply too, so the savings should be much the same. Nobody has measured them on an NVIDIA card yet, though. Until someone does, the model list and Auto's VRAM check use the old, safe figures there, so Auto may pick a smaller Segment model than your card could now run. Pick a bigger one by hand to try it.

If half precision gives a broken result on a GPU, bg-be-gone redoes the picture in full precision and stays there until it restarts. Model → Advanced → Full precision turns half precision off by hand.


Faster

What 1.1.0 1.2.0
Remove a background, 1600 px photo 1.99 s 1.00 s 2×
Remove a background, 4K photo 8.63 s 3.50 s 2.5×
Switch the background back to transparent 0.90 s 0.01 s 80×
A Segment click 4 to 6×
Batch, per 1600 px image at least 32% less

Measured on an RX 6750 XT, with PyTorch on ROCm. Batch's figure counts only writing one result while the next one runs; the faster background removal above comes on top of it.

New, small and handy:

  • Light mode. Follow system, Light or Dark, from the three circles at the top of the ☰ menu. Your choice is remembered.
  • Show in folder on every "Saved …" toast opens the folder with the file selected. "Batch finished" gets Open folder.

Smoother all around:

  • Pages: switching tabs crossfades, and the settings sidebar keeps one width on every tab.
  • Menus: they open from the pointer, and every menu opens at its full size, with no clipped text or sideways scrolling.
  • Segment's pointer label sits centered under the pointer, and no longer jitters as you move.
  • The model list shows the right VRAM figures from the start, not only after the first run.
  • Batch: each image keeps its own format, and switches to PNG only where the format can't hold transparency.
  • Alpha matting is a live switch on what's already on screen.
  • US spelling: "Color", "Canceling…".

Fixes

  • A GPU hiccup no longer breaks Segment until restart. A fault like "device kernel image is invalid" now gets one retry on a fresh GPU session. If that fails too, the model moves to the CPU, the app tells you once, and the sidebar says so.

    Segment after a GPU fault: the object is kept, a toast says the GPU failed so Segment runs on the CPU until bg-be-gone restarts, and the footer shows CPU.

  • A cut-off model download says so, instead of "Something went wrong: MD5 hash…". Nothing half-downloaded is kept.

  • Photos show upright, as their EXIF orientation says.

  • Each page's Cancel stops only that page's job.

  • Enter keeps a Segment draft even after the pointer has wandered over Result.

  • The busy spinner keeps turning after a visit to another page.

  • Opening bg-be-gone again brings the open window forward instead of starting a second one.


Updating

Download the file for your system from the assets below. Your models and settings stay where they are.

  • Windows 11: bg-be-gone-1.2.0-directml-win64-setup.exe. It installs beside 1.1.0 and takes over once it starts.
  • Linux: the AppImage for your GPU: cuda, rocm, rocm-gfx1031 (RX 6700 XT / 6750 XT), or cpu.

The wiki has every download explained, GPU support, and all the shortcuts. GitHub's list of every merged change follows below.


What's Changed

  • Make Alpha matting a live switch on what's on screen by @cristeigabriela in #27
  • Make Generate 2x and Segment's clicks 4-6x faster, with a worker benchmark by @cristeigabriela in #28
  • Give Segment's objects exact pixel crops, overlap and nesting, and stream Segment everything by @cristeigabriela in #29
  • Add the Segment page's document, click controller and history by @cristeigabriela in #30
  • Draw, open and edit Segment faster, and overlap Batch's writes by @cristeigabriela in #31
  • Matte the redesigned Segment page's objects once per decode, in the order that matters by @cristeigabriela in #32
  • Render the redesigned Segment page's Result from one recipe, in tiles, on its own worker lane by @cristeigabriela in #33
  • Answer Segment finds with all of SAM's candidates, and fix corrective clicks, turned photos, cleanup and Find all's grid by @cristeigabriela in #34
  • Halve PyTorch's VRAM on ROCm with expandable segments and a 16-point grid batch by @cristeigabriela in #35
  • Run BiRefNet in fp16 on PyTorch by default, with a Full precision switch and an fp32 safety net by @cristeigabriela in #36
  • Show the redesigned Segment page: one workspace, layers with eyes, cuts and Edit shape by @cristeigabriela in #37
  • Scan 16 points per side on the CPU when Find all's Detail is Auto by @cristeigabriela in https:/...
Read more

bg-be-gone 1.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 23:58
365734e

What's Changed

  • Behave well when things go wrong or overlap: safe batch, stale replies, dead worker, kept work by @cristeigabriela in #15
  • Show each model's download size and VRAM, say what Auto picked, and smooth the progress bar by @cristeigabriela in #16
  • Declare Windows 11 supported, and release only with every Windows asset by @cristeigabriela in #17
  • Rewrite the README around installing and using the app by @cristeigabriela in #18
  • Centre the footer bar, keep the checkmark on the chosen model, show Segment's VRAM, and drop the hard panel lines by @cristeigabriela in #19
  • Change the background live, from an Output popover, with clean edges and size-relative blur by @cristeigabriela in #20
  • Rebuild the Batch page around a gallery, with its own Output card and live preview by @cristeigabriela in #21
  • Keep the batch preview one size, use the sidebar's alpha matting, show Segment's model and detail plainly, and clear on re-run by @cristeigabriela in #22
  • Run animated GIF, WebP and APNG through a batch, every frame kept by @cristeigabriela in #23
  • Install PyTorch by default for supported GPUs on Windows and Linux, with DirectML and ONNX Runtime underneath by @cristeigabriela in #24
  • Segment by box, refine and merge found objects, matte edges, and drop stray specks by @cristeigabriela in #25
  • Run Segment's SAM models on PyTorch, and prefer PyTorch on Automatic by @cristeigabriela in #26

Full Changelog: v1.0.3...v1.1.0

bg-be-gone 1.0.3

Choose a tag to compare

@github-actions github-actions released this 28 Nov 05:28
300d1c8

What's Changed

Full Changelog: v1.0.2...v1.0.3

bg-be-gone 1.0.2

Choose a tag to compare

@github-actions github-actions released this 13 Jul 03:42

What's Changed

Full Changelog: v1.0.1...v1.0.2

bg-be-gone 1.0.1

Choose a tag to compare

@github-actions github-actions released this 11 Jul 19:14
bd1258c

What's Changed

  • Object segmentation (SAM 2.1), interaction polish, and memory management by @cristeigabriela in #1

New Contributors

Full Changelog: v1.0.0...v1.0.1

bg-be-gone 1.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Jul 08:22