lllyasviel / Fooocus

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

Change number of steps and CFG? #1352

Closed Echolink50 closed 8 months ago

Echolink50 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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

Echolink50 commented 8 months ago

Ahhhh. Will check it out. Thanks making for Fooocus also. I have A1111, Comfyui, and just recently tried Fooocus. It's fast and handy for inpainting and outpainting. Not a big deal but can Fooocus do batch img2img by the way?

On Tue, Dec 12, 2023, 2:19 PM lllyasviel @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/lllyasviel/Fooocus/issues/1352#issuecomment-1852743268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM6ISU57PCPX6Z5FOQQQZXLYJC36VAVCNFSM6AAAAABARWTSWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSG42DGMRWHA . You are receiving this because you authored the thread.Message ID: @.***>

mashb1t commented 8 months ago

@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

DefamationStation commented 6 months ago

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 commented 6 months ago

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