Fooocus/presets
Manuel Schmid 4a44be36fd
feat: add preset selection to Gradio UI (session based) (#1570)
* add preset selection

uses meta parsing to set presets in user session (UI elements only)

* add LoRA handling

* use default config as fallback value

* add preset refresh on "Refresh All Files" click

* add special handling for default_styles and default_aspect_ratio

* sort styles after preset change

* code cleanup

* download missing models from preset

* set default refiner to "None" in preset realistic

* use state_is_generating for preset selection change

* DRY output parameter handling

* feat: add argument --disable-preset-selection

useful for cloud provisioning to prevent model switches and keep models loaded

* feat: keep prompt when not set in preset, use more robust syntax

* fix: add default return values when preset download is disabled

https://github.com/mashb1t/Fooocus/issues/20

* feat: add translation for preset label

* refactor: unify preset loading methods in config

* refactor: code cleanup
2024-03-15 22:04:27 +01:00
..
.gitignore feat: allow users to add custom preset without blocking automatic update (#2520) 2024-03-15 20:51:10 +01:00
anime.json feat: allow to add disabled LoRAs in config on application start (#2507) 2024-03-11 17:59:58 +01:00
default.json fix: revert testing change to default lora activation 2024-03-13 00:32:54 +01:00
lcm.json feat: allow to add disabled LoRAs in config on application start (#2507) 2024-03-11 17:59:58 +01:00
lightning.json refactor: only use LoRA activate on handover to async worker, extract method 2024-03-11 23:49:45 +01:00
realistic.json feat: add preset selection to Gradio UI (session based) (#1570) 2024-03-15 22:04:27 +01:00
sai.json feat: allow to add disabled LoRAs in config on application start (#2507) 2024-03-11 17:59:58 +01:00