stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Feature Request]: Automatically switch to/from inpainting model if present

Open glindsey opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

For models that have a corresponding "-inpainting" model, the "Inpaint" tab would automatically switch to that model to do its rendering. The model would then be automatically switched back to the normal, non-inpainting model if any other tasks (txt2img, img2img, etc.) are performed.

Additionally, the "-inpainting" models (that have corresponding non-inpainting models) would be hidden from the model dropdown.

This behavior would be toggleable via Settings, since I'm sure some people would prefer to keep things the way they are.

Proposed workflow

  1. Choose a model that has a corresponding "-inpainting" model.
  2. Use the "Inpaint" tab to generate an image. The WebUI automatically loads the "-inpainting" version of the model before generation.
  3. Use another tab (e.g. "txt2img") to generate an image. The WebUI automatically loads the non-inpainting version of the model before generation.

Additional information

No response

glindsey avatar Feb 24 '23 12:02 glindsey

This would be really convenient to have.

RubyXGit avatar Mar 02 '23 07:03 RubyXGit