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

Change number of steps and CFG? #1352

Closed
Echolink50 opened this issue Dec 12, 2023 · 7 comments
Closed

Change number of steps and CFG? #1352

Echolink50 opened this issue Dec 12, 2023 · 7 comments

Comments

@Echolink50
Copy link

Seems like a silly question but I just can't find where to set the amount of steps and CFG. I see speed, quality, extreme speed, which seem to change the steps but I would like to put in a specific amount. Is it in a config file or is it in the UI? Thanks everyone

@lllyasviel
Copy link
Owner

cfg is guidance scale in advanced

you can change step in advanced -> dev tools but these are dangerous settings that may make results worse.

in most cases, if you are able to get good results by changing steps, then you can try restart fooocus and do not change anything - you will find results are even better in default setting without any change to those things.

@Echolink50
Copy link
Author

I am experimenting with some turbo models and LCM Loras. They don't like high steps in some cases. Is the step number in advanced named something else? I must have overlooked it somehow. Thanks

@lllyasviel
Copy link
Owner

yes you can change step in advanced -> dev tools -> Forced Overwrite of Sampling Step

@Echolink50
Copy link
Author

Echolink50 commented Dec 12, 2023 via email

@mashb1t
Copy link
Collaborator

mashb1t commented Dec 29, 2023

@Echolink50 Currently Fooocus can't handle batch img2img in UI, but you can use the API to do so if you're familiar with the Gradio API (Websocket).
For a REST implementation this repository might be helpful: https://github.com/konieshadow/Fooocus-API

@mashb1t mashb1t closed this as completed Dec 29, 2023
@DefamationStation
Copy link

yes you can change step in advanced -> dev tools -> Forced Overwrite of Sampling Step

cfg is guidance scale in advanced

you can change step in advanced -> dev tools but these are dangerous settings that may make results worse.

in most cases, if you are able to get good results by changing steps, then you can try restart fooocus and do not change anything - you will find results are even better in default setting without any change to those things.

Hello, can you please consider making these parameters much more easier to access? Switching between SDXL and Lightning models right now is very cumbersome because Lightning needs 4-6 steps to produce a good image, it gets ruined at 60.

@mashb1t
Copy link
Collaborator

mashb1t commented Feb 28, 2024

@DefamationStation please consider creating an own preset for lightning. You can continue the discussion in #2318 and find settings there.
Also check out https://github.com/mashb1t/Fooocus/blob/main/presets/lightning.json

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