lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
40.55k stars 5.66k forks source link

Saving Settings to Local storage #1622

Open kenchambers opened 9 months ago

kenchambers commented 9 months ago

Describe the idea you'd like

Since we are using the browser, would it be beneficial to have the ability to save settings? maybe even by default. I noticed that no settings are saved at all, or perhaps even post MVP, we can have the ability to swap between different set ups.

Being able to save pretty much everything like

  1. loras
  2. checkpoints
  3. exact numbers for all settings that use the scrolly wheel.

Would this be useful to others?

For me I log into a virtual machine to use focus, so i've had to save all the settings & combination of loras I find useful by taking screenshots and saving to a rich text document.

Possible solutions

mashb1t commented 9 months ago

Thank you for the idea!

What you already can do is to create a preset, but this would have to be manually updated every time you do changes.

Gradio doesn't (yet) have an out of the box solution for persisting data in local storage, but there is an open issue where multiple ideas have already been discussed: https://github.com/gradio-app/gradio/issues/3106

Please check if one of the options works for you and feel free to create a PR.

Amit30swgoh commented 9 months ago

Thank you for the idea!

What you already can do is to create a preset, but this would have to be manually updated every time you do changes.

Gradio doesn't (yet) have an out of the box solution for persisting data in local storage, but there is an open issue where multiple ideas have already been discussed: gradio-app/gradio#3106

Please check if one of the options works for you and feel free to create a PR.

How u create a preset ?

mashb1t commented 9 months ago

@Amit30swgoh you can simply copy one of the existing presets (e.g. realistic.json), save it with a different filename and adjust it to your liking.

Amit30swgoh commented 9 months ago

@Amit30swgoh you can simply copy one of the existing presets (e.g. realistic.json), save it with a different filename and adjust it to your liking.

Ok ty and when clicking update will it remove it? Also can i confog to allow nsfw pls

mashb1t commented 9 months ago

@Amit30swgoh presets will never be deleted from your local machine, except you do so manually. Feel free to configure whatever you like in them or your local config.txt.

Amit30swgoh commented 9 months ago

Thank you for the idea!

What you already can do is to create a preset, but this would have to be manually updated every time you do changes.

Gradio doesn't (yet) have an out of the box solution for persisting data in local storage, but there is an open issue where multiple ideas have already been discussed: gradio-app/gradio#3106

Please check if one of the options works for you and feel free to create a PR.

Great answer thnx again