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

Default setting doesn't work

Open nemesiscompletion opened this issue 1 year ago • 13 comments

With new Forge I installed today, I noticed that default setting doesn't work I know to change defaults setting, go to Settings tab -> Defaults -> View Changes -> Apply -> Reload UI However, the settings never saves or shows the last setting

This is what I used for my settings 20240815_015950

But it keeps shows this one when I restart or reload web UI 20240815_020245

This is the version for my Forge 20240815_020407

Is this some ongoing issue that's going to be fixed on next patch or is it just me having this problem? If it's the latter, is there way to solve this? Thank you for your time

nemesiscompletion avatar Aug 15 '24 06:08 nemesiscompletion

I also waiting for this solution :(

danilomaiaweb avatar Aug 15 '24 07:08 danilomaiaweb

I'm getting different numbers in dimensions, but I have the same problem. Even editing in ui-config or config is doing nothing.

Also I can't get Hires. fix to stay turn on, after restart it is back to off, someone knows where I can change that? Also Schedule type is always back to "Automatic", this is annoying.

Before the update I was able to set up everything once with notepad and It was ready to go every restart. Good that I have saved version of Forge before the update but it is lacking some features.

R3CoCo avatar Aug 15 '24 23:08 R3CoCo

Same for me.

dandybobel avatar Aug 20 '24 01:08 dandybobel

Having the same issue. If I click "View changes", it correctly shows me what should be the defaults, showing that if I "Apply" then those defaults would be changed to what is actually being used as the defaults. Keep in mind, if looking at the screenshot, that this is what it looks like if I reload the UI then immediately, without making any changes, go to click "View changes". image

hopperelec avatar Aug 20 '24 18:08 hopperelec

Same issue.

coghazard avatar Aug 22 '24 14:08 coghazard

My guess is, this bug (?) appeared as a result of introducing the UI profile system for SD, XL, Flux and All... It could be also an incomplete feature, which introduced the profiles, but no separate save functions, yet.

testonedev avatar Aug 22 '24 16:08 testonedev

There are two easy workarounds for that atm.

  • You can manually edit the preset values for sd/xl/flux/all in modules_forge/main_entry.py, under the function on_preset_change.
  • You can disable the presets system entirely by commenting out some lines in modules_forge/main_entry.py.

For the second option, look for those lines and comment them by placing a # at the beginning of the line:

# example of a comment
# Those two lines load the preset
    ui_forge_preset.change(on_preset_change, inputs=[ui_forge_preset], outputs=output_targets, queue=False, show_progress=False)
    Context.root_block.load(on_preset_change, inputs=None, outputs=output_targets, queue=False, show_progress=False)

# And this one adds the buttons to choose the preset
    ui_forge_preset = gr.Radio(label="UI", value=lambda: shared.opts.forge_preset, choices=['sd', 'xl', 'flux', 'all'])

By commenting those 3 lines you should now be able to edit the settings through ui-config.json and/or config.json, and likely through the "apply defaults" option too.

Just don't blame me if something breaks because of that, but if it does you can always revert the changes.

You might get merge conflicts during updates because of that, or something might just break, so I recommend keeping an eye out for commits that modify this file.

As4shi avatar Aug 22 '24 20:08 As4shi

There are two easy workarounds for that atm.

* You can manually edit the preset values for sd/xl/flux/all in `modules_forge/main_entry.py`, under the function `on_preset_change`.

* You can disable the presets system entirely by commenting out some lines in `modules_forge/main_entry.py`.

For the second option, look for those lines and comment them by placing a # at the beginning of the line:

# example of a comment
# Those two lines load the preset
    ui_forge_preset.change(on_preset_change, inputs=[ui_forge_preset], outputs=output_targets, queue=False, show_progress=False)
    Context.root_block.load(on_preset_change, inputs=None, outputs=output_targets, queue=False, show_progress=False)

# And this one adds the buttons to choose the preset
    ui_forge_preset = gr.Radio(label="UI", value=lambda: shared.opts.forge_preset, choices=['sd', 'xl', 'flux', 'all'])

By commenting those 3 lines you should now be able to edit the settings through ui-config.json and/or config.json, and likely through the "apply defaults" option too.

Just don't blame me if something breaks because of that, but if it does you can always revert the changes.

You might get merge conflicts during updates because of that, or something might just break, so I recommend keeping an eye out for commits that modify this file.

Thank you for this solution, I will try that later

R3CoCo avatar Aug 23 '24 00:08 R3CoCo

This still seems to be a problem. The defaults work for some settings, but not others. It doesn't reset the sampler, scheduler, CFG or any of the extensions that were enabled. It's a pain to have to manually go through everything every time you start Forge.

GalaxyTimeMachine avatar Dec 13 '24 07:12 GalaxyTimeMachine

No need to manually disable in python, for now just set the preset to 'all' and your default settings would be there. Image Though I think it being applied to other presets would be the expected behavior. Hope this gets implemented soon.

scriptcloud avatar Feb 26 '25 23:02 scriptcloud

Everything above seed kept but extensions still getting reset every time, they do not even show up in defaults/view changes. Also prompt text area responsivness just dies after first generation. Loom Upd. Turned out it was Civitai browser extension that caused the lag, but defaults issue still stands.

Gebsfrom404 avatar Mar 04 '25 20:03 Gebsfrom404

I have this same issue, all the basic settings save like sampler, model, steps, CFG scale, resolution.

But extensions won't stay enabled by default no matter what ;^(

yileos avatar Apr 27 '25 15:04 yileos

So the bug is open around a year, when fix!?

i know how to set it to ALL but either remove the choice completeley or make it work as it should.

i guess a better way would to load the model from different subfolders, like sdxl/sd1.5/flux and unlock options depending on folder.

phil2sat avatar Jul 25 '25 05:07 phil2sat