adetailer-hires-sync: hires fix and ADetailer in one click
A small extension for Forge and reForge. When you upscale a finished image with the ✨ button, it switches ADetailer on for that pass and switches it off again when the pass is done. Drafts stay fast, and finished images get their faces fixed at the final resolution.
New here? Start with the step-by-step guide.

Left: a draft at base resolution. Right: the same seed after hires fix and ADetailer. Bottom row: the face area enlarged.
Features
Automatic ADetailer toggle: off while you iterate, on for the ✨ upscale, off again afterwards
Leaves your choice alone: if you had ADetailer on yourself, it stays on
Batch upscale: tick several thumbnails in the gallery and click ✨ once. They are upscaled one after another
Wildcard-safe: the upscale uses the exact prompt, negative prompt and seed of the image you picked, so a wildcard does not resolve to something else on the second pass
No settings: it uses your own Hires fix and ADetailer settings and only flips the enable checkbox
Why
ADetailer adds an inpaint pass to every image. While you are still looking for a composition, that pass is wasted time, so most people keep it off. Then you find a keeper, click ✨, and have to remember to tick ADetailer first and untick it after. Forget the first step and you get an upscale with an unfixed face. Forget the last and every draft after that is slow. This extension does both steps for you.
How it works
Click ✨ on a finished image.
If ADetailer is off, the extension switches it on and remembers that it did.
The hires pass runs, followed by ADetailer.
When generation finishes, ADetailer goes back off.
Upscaling several images
After a batch, each thumbnail in the txt2img gallery gets a small round checkbox. Tick the images you want to keep and click ✨ once. With nothing ticked, ✨ behaves as usual and upscales the selected image.
Requirements
SD WebUI Forge or reForge (tested on reForge)
The ADetailer extension, installed and configured
Installation
Open Extensions, then Install from URL.
Paste https://github.com/KazeKaze93/adetailer-hires-sync.git and click Install.
Click Apply and restart UI.
More
Source and troubleshooting: github.com/KazeKaze93/adetailer-hires-sync. Found a bug? Open an issue on GitHub.
It pairs well with Style Grid, which adds the wildcards this extension keeps stable on the second pass.

