sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

[feature request]: api endpoint to change 1.4/2.1 configs

Open devilismyfriend opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

What happened?

Right now it can only be changed by going to the settings menu, would be great to have it exposed on the API so we can change it as needed, or better yet, detect if the model is 2.1 or 1.4 and set it internally to save the hassle.

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

auto change or api change

Commit where the problem happens

webui: nan controlnet: nan

What browsers do you use to access the UI ?

No response

Command Line Arguments

nan

Console logs

nan

Additional information

No response

devilismyfriend avatar Mar 07 '23 20:03 devilismyfriend

The webui contains code to automatically detects whether a 1.x or 2.x checkpoint is in use. I don't know if it's possible to do the same with controlnet, maybe it is possible to reuse bits of code here and there from the webui if the controlnet vs normal checkpoints contain similar metadata.

ljleb avatar Mar 07 '23 22:03 ljleb

you can name the configuration the same as the model filename to override default settings, just like the WebUI's model/yaml does.

Mikubill avatar Mar 08 '23 00:03 Mikubill