stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: sd_hypernetwork (Add hypernetwork to prompt) dropdown does not have a None option
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
sd_hypernetwork from the Quicksettings list does not currently have a None option, which stops the user from disabling any hypernetwork once an option is selected.
Steps to reproduce the problem
- Go to Settings
- Add sd_hypernetwork to quick settings list
- Select an option in the dropdown
What should have happened?
There should be a None option to stop the UI from adding the hypernetwork to the prompt.
Commit where the problem happens
a7d6fc3b
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
--xformers --disable-nan-check
List of extensions
None
Console logs
N/A
Additional information
Current workaround is manually editing config.json
, setting "sd_hypernetwork" to "None", then relaunching the UI.
Hypernetworks can be added and removed in the 🎴 extra networks menu.
yeah i have the same issue. and you cant remove it in extra networks menu. it keeps getting replaced unless you remove all the hypernetworks from the directory.
something is broken in extras, it wont let me select any blank space above to deselect the option altogether & to choose no hypernetwork. so i take the multiplier down to zero but then its invisibly added to my prompt with the previous multiplier weight. it shows up in the generation parameters txt with the image even though its not in the prompt box and i can tell after the 1st generation its still there because it keeps the same .650 weight even though i changed the multiplier in settings to zero. i deleted the parameters.txt in the main directory where it was stored initially, disabled multiple hypernetworks extension, looked around in some json config files for the extras setting, and changed the prompt but its being added every generation now for no reason, it just shows up to irritate me.
Same problem!
same here
Same problem!
This is utterly annoying. Please fix this quickly. Had to remove/rename the model/hypernetworks folder to disable it.
+1 this issue. How did this even happen? i mean, you'd think its too obvious to miss as an issue.
I actually made a bootleg fix for this and the LoRA dropdown in the meantime: You can go inside shared.py and change line 364 from
"sd_hypernetwork": OptionInfo("None", "Add hypernetwork to prompt", gr.Dropdown, lambda: {"choices": [""] + [x for x in hypernetworks.keys()]}, refresh=reload_hypernetworks),
to
"sd_hypernetwork": OptionInfo("None", "Add hypernetwork to prompt", gr.Dropdown, lambda: {"choices": [("None")] + [x for x in hypernetworks.keys()]}, refresh=reload_hypernetworks),
For lora to lora_script.py and change line 55 from
"sd_lora": shared.OptionInfo("None", "Add Lora to prompt", gr.Dropdown, lambda: {"choices": [""] + [x for x in lora.available_loras]}, refresh=lora.list_available_loras),
to
"sd_lora": shared.OptionInfo("None", "Add Lora to prompt", gr.Dropdown, lambda: {"choices": [("None")] + [x for x in lora.available_loras]}, refresh=lora.list_available_loras),
No idea if this works properly or if it even is the right way to do it, but better than fiddling with writing inside config.json manually
This is in the settings/extra networks page.
If you inspect the html for the dropdown, there's a div with title "Remove All" that has display=None (at least for me). Set display to block and the little X will show up, allowing you to remove Lora / Hypernets.
At least until this is fixed.
I have the same problem.
My work around (imho, easier than the ones above):
- Edit config.json, setting "sd_hypernetwork" to "None" as OP mentioned
- Restart the webui
- In the webui settings, under user interface, under quicksettings list : remove "sd_hypernetwork, sd_hypernetwork_strength"
- From now on add the hypernetworks using the card menu. This will add items to the positive prompt like "hypernet:sxzBloom_sxzBloom:1"
As long as you never touch the quicksettings hypernetwork combobox again or the "hypernetwork to prompt settings" (webui settings, under extra networks, add hypernetwork to prompt), you can put and remove the hypernetwork items from the prompt and it works as expected.
I have the same issue here. Even after removing the .pt hypernetwork file and restarting SD it is still there.
can you make a commit?
@QinCaii nope, and not because i don't want to, but because none ever get approved (in any meaningful timely manner) as they require final say from Automatic1111.
Look around here, there are plenty of fixes and good things ready to be merged but don't due to this. Manually fixing it yourself is your only option for now bar a fork of the project.