-
Hello, I have a Python discord bot I'm using as a frontend for the webui. Is anyone able to point me in the right direction on how to develop this? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
You may need to provide the Example on bb295f5 snapshot: stable-diffusion-webui/modules/shared.py Line 243 in bb295f5 from OptionInfo(None, "Stable Diffusion checkpoint", gr.Dropdown, lambda: {"choices": modules.sd_models.checkpoint_tiles()}, refresh=sd_models.list_models) into OptionInfo(None, "Stable Diffusion checkpoint", gr.Dropdown, lambda: {"choices": modules.sd_models.checkpoint_tiles(), "api_name": "sd_model"}, refresh=sd_models.list_models) However, the current model is focused on handling "one selected model at a time". So, changing them at will may require further queueing. Let's say:
When User A queues the a prompt, their stored model setting will be prepended to the API call so the model will change right before generating an image. With an example queue of: "User A", "User B", "User A", "User C", "User B". The API call formed will be in this order:
This is still untested but the base theory is that you need to have internal queueing on your bot to change model over and over without sticking to |
Beta Was this translation helpful? Give feedback.
You may need to provide the
api_name
on given element.The element key is
options_templates["sd_model_checkpoint"]
, you need to modify thecomponent_args
part to haveapi_name
key in it.Example on bb295f5 snapshot:
stable-diffusion-webui/modules/shared.py
Line 243 in bb295f5
from
into