This is a massive ComfyUI workflow that helps to improve and simplify detailing and upscaling of stable diffusion images by enabling easy and automatic masking along with prompt refinement for multiple characters at once, allowing users to do highly selective inpainting/detailing/upscaling without need for any manual masking, and minimal prompting.
The workflow primarily enhances the fine details and overall quality of stable diffusion images. It performs quite poorly at high denoise levels, so it isn't very good for clothing swap or face swap workflows.
Currently, the prompt enhancement logic is pretty cisnormative and heteronormative. This may be improved on in a future release by adding more subject characteristic flags, but the prompt enhancment logic is already kinda complicated. For the time being, for generating trans or gender nonconforming characters, consider disabling the prompt enhancement block and prompt for those manually.
Simply drag and drop the JSON file into ComfyUI! Read the notes in the workflow for an explanation of what everything does.
Big thanks to
catlover1937 over at CivitAI. This workflow is a massive expansion and adaptation of the "Face Detailer" and "SD Upscale" sections of their excellent (and much more reasonable in scale)
ZIB + ZIT Simple Workflow. This workflow would not have come into existence without that essential DNA to work from.