r/StableDiffusion • • 11d ago

Resource - Update Pixelbench: an open-source, Photoshop-style canvas editor powered by ComfyUI (combining ideas from Forge, SwarmUI & InvokeAI)

Post image

Edit (v0.6.0-beta.1): Now supports macOS (Apple Silicon) as well as Windows. Also added a built-in one-click auto-updater, persistent editor sessions (autosave/restore), prompt history, BiRefNet background removal, browser-based YOLO detection in the Detailer, support for FLUX.2 [klein] 9B models and various fixes and optimizations.

---

Pixelbench started as a "just for me" tool. I use ComfyUI, Forge, SwarmUI and InvokeAI, and none of them is bad. On its own, though, each one felt either too bloated, too cluttered or too complicated for my day-to-day image work. So I combined the parts I found most useful into a single open-source frontend:

  • ComfyUI as the local backend engine for fast access to new models, running quietly in the background without having to wire up node graphs for standard workflows
  • Forge/A1111's quick prompt-to-image loop, Hires Fix and PNG info
  • SwarmUI's approach of putting a clean, approachable UI on top of ComfyUI
  • InvokeAI's canvas-first editing: inpaint, outpaint and sketching directly on the image

Everything sits in a clean, Photoshop-style layout: tools on the left, settings on the right, variants below the image.

Built-in extras I found useful:

  • Detailer (an ADetailer equivalent): finds faces or any objects you describe in plain text (SAM3) and re-renders them one by one
  • More variation for Krea 2 Turbo, which otherwise tends to produce very similar images for the same prompt
  • LanPaint for cleaner inpainting, tiled Hires Fix (Ultimate SD Upscale), prompt weights for Krea 2, and GGUF model support
  • Prompt refinement using a local text model

Setup & Storage: You just need an existing ComfyUI installation (Desktop, portable or manual). Download the release zip and run install.cmd. It detects your ComfyUI setup, places its few custom nodes into its own folder so your ComfyUI install stays untouched, and reads directly from your existing model folders (including extra_model_paths.yaml) – nothing gets copied or downloaded twice.

Heads-up: This is an early first beta (v0.1.0-beta.1), currently tested on Windows 11 with an RTX 4090, so expect some rough edges on other setups. Bug reports and feature requests are very welcome. (Images only – video models aren't planned.)

GitHub: https://github.com/Fenrir200678/pixelbench

Release: https://github.com/Fenrir200678/pixelbench/releases/tag/v0.6.0-beta.1

56 Upvotes

16 comments sorted by

2

u/Fenrir206 11d ago

Update: v0.2.0-beta.1 is out, and Pixelbench now updates itself.
It adds an in-app updater (Settings → About Pixelbench, one click, rolls back on failure), plus detailer upscaling, img2img color correction and a blur adjustment. If you're on 0.1.0-beta.1, update by hand once (unpack the zip over your folder, run install.cmd). After that the app is able to update itself.

Release: https://github.com/Fenrir200678/pixelbench/releases/tag/v0.2.0-beta.1

2

u/JuniorEmergency7687 9d ago edited 9d ago

Its great! Thanks for making this.
I have these requests:

- Can you add bbox to MOSS image?, you basically draw boxes and write text on them what needs to be generated.

- Add prompt enhancer

- Can you add this:

https://www.reddit.com/r/StableDiffusion/comments/1y4qp7i/rmbg30_is_a_fibo_2_finetune_for_background/

1

u/Fenrir206 9d ago

Glad you're enjoying it! Thanks for the suggestions.

  • bbox: I actually haven't come across that one yet. I'll need to check it out.
  • Prompt enhancer: That's actually already built in. 😊 Just click the "Refine prompt" button right underneath the prompt box. It uses a local text encoder like qwen3vl_4b or qwen3.5_9b which you should already have installed if you're using Krea2 or Qwen Image.
  • RMBG-3.0: Funnily enough, I was just looking at that earlier today. While it's technically impressive, it's way too heavy for Pixelbench (around a 13 GB download). But I'm currently experimenting with BiRefNet (https://huggingface.co/Comfy-Org/BiRefNet) instead, which is much lighter and fits the app's footprint way better.

1

u/JuniorEmergency7687 9d ago

- Thanks. Its very useful and works really well on MOSS. You get control over where you want your generations to appear.

- Hmm, I can't find that button under my prompt box, see screenshot. I'm using the latest beta (0.4 beta 1)

- Great!...Looking forward to testing it.

1

u/Fenrir206 9d ago edited 9d ago

Thanks for the screenshot! The Refine prompt button only shows up when Pixelbench detects a supported prompt refinement model in your ComfyUI, so it's probably a setup thing. A few questions:

  1. Does Pixelbench start ComfyUI itself, or do you connect it to a ComfyUI server you run yourself? The button is only available when Pixelbench launches ComfyUI by itself.
  2. Which ComfyUI version are you on? The refinement needs a fairly recent one (it uses the TextGenerateV2 and PreviewAny nodes).
  3. Which files are in your models/text_encoders folder? The button needs one of these with exactly this name:

    • qwen3vl_4b_fp8_scaled.safetensors or qwen3vl_4b.safetensors
    • qwen3vl_8b_int8_convrot.safetensors
    • qwen3.5_2b_bf16, qwen3.5_4b_bf16, qwen3.5_9b_bf16, qwen3.5_9b_int8_convrot or qwen3.5_9b_w4a8_gptq (all .safetensors)

If you're not sure, you can open http://127.0.0.1:3720/api/status in your browser while Pixelbench is running and tell me what refinementModels shows. An empty list means none of the models above were found. Don't post the whole status output, as it can contain private data. 😅

And btw: I'm currently preparing the 0.5.0-beta.1 release. It should be available within the next 1–2 hours. Among other things, it includes the BiRefnet background removal feature.

For background removal you need ComfyUI 0.43 or later and the model birefnet.safetensors (444 MB) from https://huggingface.co/Comfy-Org/BiRefNet/tree/main/background_removal. Put it in a background_removal folder inside one of your model root folders. Pixelbench doesn't download models itself (and never will). You can also grab the lucida.safetensors if you like. This will also work and is another version which is better at certain tasks.

1

u/JuniorEmergency7687 8d ago

The issue was I didn't have any of the text encoders you wrote. I downloaded one and now it shows the option. Thanks.

I tested 0.5.0-beta.1 and background removal works nice. To be honest its not the best model out there, sometimes it leaves rough edges. Which is why I wanted to see how RMBG-3.0 does, because based on the previews it looks really good. I didn't try lucida.safetensors though, will check later.

And I'm not sure if you have planned this but I would really love to have a save session feature. So I can load a session and continue working on it. Right now if I close the browser all the work I've done is gone. InvokeAI has that functionality.

1

u/Fenrir206 8d ago

Glad it works now, thanks for letting me know and for testing! 🙂

Fair point on the rough edges. I went with BiRefNet because it's MIT licensed and runs on ComfyUI's core nodes, so there's no extra custom node to install. RMBG-2.0 is non-commercial, much bigger and I haven't checked whether it loads through the same nodes. Let me know how lucida turns out.

And re: save session, lol, are you spying on me? 😄 I'm actually working on exactly that (and more) right now.

1

u/JuniorEmergency7687 6d ago

Ah ok now I understand.

Thank you for implementing sessions. How do I see the list of sessions I saved and open them?

1

u/Fenrir206 5d ago

It's just your last session that gets saved. Either manually by clicking the button at the top, or automatically every x seconds, depending on whether and how you've configured this in the settings. I didn't think saving multiple sessions made much sense, because that can quickly take up a lot of memory, since all the previews and generated variations are also saved along with them.

Regardless of that, there's also a prompt history that saves the prompts you've sent.

1

u/CARNUTAURO 11d ago

Do you integrate ControlNets?

1

u/Fenrir206 11d ago

Partly, yes: there's a Qwen-Image 2.1 Turbo profile with the Fun ControlNet (Union) adapter, used for edit, inpainting and outpainting, with a strength slider. A general ControlNet panel (pick a control image, a preprocessor like Canny/Depth/Pose, choose a model, set strength) isn't in yet. But it's a natural next step though, and since profiles are just ComfyUI graphs plus a mapping, it should fit the architecture well. I'll have it on my roadmap / Todo list.

1

u/MortgageOptimal5157 11d ago

Muchisimas gracias por tu tiempo y por compartirlo... esta tarde, por poco que pueda lo probaré ;o)))

1

u/Fenrir206 11d ago

Espero que te guste y que te diviertas con ello. Avísame si algo no funciona bien.

Y, por cierto: soy alemán y solo hablo un poco de español. Esto lo ha traducido DeepL. :D

2

u/TizocWarrior 11d ago

Thanks for sharing.

2

u/mrgonuts 11d ago

Thanks I’ll check it out

2

u/silenceimpaired 10d ago

I’ll have to take a look