Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i save full settings parameters? #775

Closed
kubilaykilinc opened this issue Oct 24, 2023 · 6 comments
Closed

How can i save full settings parameters? #775

kubilaykilinc opened this issue Oct 24, 2023 · 6 comments

Comments

@kubilaykilinc
Copy link

Hi,

Fooocus uses the default values in the sample preset files, which I can change as needed. However, I want to define my own custom settings, but I have to manually adjust other settings every time I turn it on.

How can I save the first, second, third, fourth, and fifth LoRa settings as the default values in the preset?
I also want to customize the Developer Debug Mode settings, such as setting FreeU to True by default. I want to be able to define and save all of my Developer Debug Mode settings in the preset.
I haven't been able to do this because I can't find a sample file.

@Vincevinny
Copy link

i made a new preset and new .bat to launch the preset
the .bat
.\python_embeded\python.exe -s Fooocus\entry_with_update.py --preset Vince
pause
SAVE AS BAT

the new preset
{
"default_model": "juggernautXL_version6Rundiffusion.safetensors",
"default_refiner": "",
"default_lora": "",
"default_lora_weight": 0.25,
"default_cfg_scale": 3.0,
"default_sampler": "dpmpp_3m_sde_gpu",
"default_scheduler": "karras",
"default_styles": [
"Vin Neg"
],
"default_prompt_negative": "",
"default_prompt": "happy dog",
"default_aspect_ratio": "896*1152",
"default_image_number": 2,
"checkpoint_downloads": {},
"lora_downloads": {},
"embeddings_downloads": {},
"default_advanced_checkbox": true
}

SAVE AS JSON!!

then delete the user_path_config.txt and use windows junctions to move the models you want into foocous with the config.txt deleted it wont constantly delete your custom folders

you can also add your own styles like this just copy sdxl_styles_fooocus.json rename it and modify it to your needs

@mashb1t
Copy link
Collaborator

mashb1t commented Dec 31, 2023

You can simply duplicate one of the existing presets, such as e.g. realistic https://github.com/lllyasviel/Fooocus/blob/main/presets/realistic.json, then modify it to suit yuur needs.
Presets can be used by ading --preset <name> to your run.bat or entrypoint script.

@mashb1t mashb1t closed this as completed Dec 31, 2023
@ksorah1
Copy link

ksorah1 commented Jan 17, 2024

in all others uis, params are saved on each picture and you just have to drag and drop them into uis to change parameters.

@mashb1t
Copy link
Collaborator

mashb1t commented Jan 17, 2024

Yeah, about that, i've integrated this feature only 2 days ago (at least the metadata writing part), see #1940
This allows to add metadata for both Fooocus and A1111, but currently there is not yet a way to re-import this to Fooocus.
Stay tuned, will develop this when i have time!

@ksorah1
Copy link

ksorah1 commented Jan 17, 2024

ok, your ui brought me all that that the other uis did not do (comfy, 1111, dall-e, midjourney, invoke, etc...):
-working and fast sdxl
-excellent in/outpaint, better than dall-e (and hd, just how)
-satisfactory LORA, thanks to the subtle modify and to:
-upscale that hallucinates.

Before I discovered this use, LORA only gave terrible results.

excellent ui but this feature is missing to death, about your link, that's a begin.
actualy that's so boring to open again advanced, and put options + prompts etc... I'll wait

@ksorah1
Copy link

ksorah1 commented Jan 17, 2024

ah and your ui is useful too to fix bad pictures (when you generate a bad face for exemple)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants