Portrait of Michael Limberger

Michael Limberger

Need me? Email mike@limberger.ca

AI

Quick Reference - Both Platforms

Two platforms, one launch script

Same ./webui.sh on both sides. The flags and the package managers differ.

Item macOS Apple Silicon Linux (Ubuntu)
Python version 3.10 (via Homebrew) 3.10 (native or PPA)
Package manager Homebrew apt
Key dependencies cmake, protobuf, rust libgl1, libglib2.0-0
Launch script ./webui.sh ./webui.sh
Essential flags --skip-torch-cuda-test, --no-half-vae --xformers (NVIDIA)
Access URL http://127.0.0.1:7860 http://127.0.0.1:7860
First run time 10-30 minutes 10-40 minutes

Flags you will actually use

Flag What it does
--autolaunch Opens a browser when ready
--medvram Cuts VRAM usage if you are running tight
--lowvram Even more aggressive. Slower, but it works
--listen LAN access. Binds to 0.0.0.0
--port XXXX Use a different port than 7860
--api REST API for scripting
--xformers Memory-efficient attention. NVIDIA only
--no-half Full precision. Slower, more compatible
--no-half-vae Fixes black or corrupted images

First run

First launch pulls down about 9 GB of stuff. Go grab a coffee. It will take 10 to 40 minutes depending on your connection.

Models go in models/Stable-diffusion/.

You do not need the brkirch Mac fork anymore. Those optimizations got merged into the main repo.

PNG files remember the recipe

Every image you generate contains the metadata needed to recreate it. The PNG stores the full prompt and negative prompt, the seed number, sampler and steps, CFG scale, model name, and image dimensions.

To reuse settings from any image: go to the PNG Info tab in the WebUI, drag and drop your image (or click to upload), click "Send to txt2img" (or img2img). All parameters auto-populate.

That means you can share images and others can reproduce your exact results. The workflow is self-documenting. No need to keep notes about what settings worked.

Some image editors strip metadata when saving. If you edit in Photoshop or similar, export as PNG and check "preserve metadata" or the equivalent option.