[Feature Request]: Manually Set Model Override
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 ?
I'm using a webui instance that's hosted on Google Cloud Compute and shared between a small group of people. We've run into some issues where changing the checkpoint on one user changes it for everyone (as is expected behaviour in this case). A workaround we've found for this, is to go into the Image Browser, find an image made with whatever model I want to use, and sending that to txt2img so that the desired model is added to Override Settings.
I would like to be able to manually specify a checkpoint model in Override Settings, to avoid having to go through the Image Browser workaround.
Proposed workflow
- Go to txt2img or img2img
- Select an override model in the Override Settings box
Additional information
I'm aware this'll be a pretty niche usecase. Any other suggestions or solutions are definitely welcome
I too need this feature too. I tried to change ui-config.json:
"txt2img/Override settings/visible": true,
"txt2img/Override settings/value": [
"Clip skip: 2",
"ENSD: 31337",
"Discard penultimate sigma: True"
],
but it doesn't work...
Really, this setting (along with others like Clip skip and ENSD) should just be migrated to be generation parameters like steps and cfg.
The override setting implementation has some nasty gotchas (partly because it doesn't restore the original value when it is is done, partly because the overrides depend on current state).
I usually have about 8 paramsets I am generating on and was getting nice results.. and then I closed one of the tabs which broke everything else (because it was no longer overriding settings).
Tab 1: no overrides, A1 B2 C3
Tab 2: override A2, A2, B2, C3
Tab 3: no overrides, A2, B2, C3
Tab 4: override A1, A1, B2, C3
Closing Tab 2 breaks Tab 3, as it changes it to
Tab 1: no overrides, A1 B2 C3
Tab 2: ~
Tab 3: no overrides, *A1*, B2, C3
Tab 4: override A1, A1, B2, C3
This only gets worse when you have multiple users because then the order is random too (Tab 1 has its A changed, which breaks the image.. but "only" that time, it works when they try it again!)
Tab 1: no overrides, A1 B2 C3
Tab 2: override A2, A2, B2, C3
Tab 1: no overrides, A2 B2 C3
Tab 4: override A1, A1, B2, C3
Tab 1: no overrides, A1 B2 C3
Tab 3: no overrides, A1, B2, C3
Spooky action at a distance!
I wonder if extending the "style" feature to include an optional list of overrides as well as +/-ve prompts would do the trick? At the point where the style is merged with the user's prompt the overrides would need to be applied over the UI settings.
Thoughts on implementation: A "style" would gain an extra property, override_list. Initially, editing these would have be done via the CSV file to avoid UI changes. Within the styles CSV file it might be easiest to save these individually as columns named override_<setting_name>, with columns only needed for settings being specified.
To manage these via the UI, the style editor would need a third text box edit this override_list. Actually, knowing how to write/format overrides correctly may be a challenge for many. It might be safer to have a toggle in the UI to switch between "advanced" (a free text box) and "basic", with the basic mode providing a short list of settings (checkpoint, sampler, CFG, HxW dimensions) that can be specified in the style editor via dropdowns or sliders.
Challenge: what happens during generation if multiple styles are selected, perhaps with conflicting overrides?
There is an Options in main UI - txt2img setting where you could add sd_model_checkpoint that allows for what OP wants.