Skip to content

CFG Auto script

guzuligo edited this page Mar 9, 2023 · 4 revisions

This script is intended to simplify the mathy stuff into sliders. It should include some successful experimentation I try.

image

Loop Part

Use this in img2img to apply the effect repeatedly.

Loops

This is the same as loop script but uses the effects of this script.

Loop Returns One

If checked, only the last loop image returned.

Target Denoising

Gradually go towards this denoising. Last loop will equal to this denoising value.

Scheduler Part

Scheduler is the pre-configured scripts for the scheduler. Depending on the one you choose, the other sliders change. ###Blur First V1 The idea behind this scheduler is to apply more noise in the beginning.

In img2img, this allows fixing the image before applying the CFG to it.

Main Strength: Strength of noise. Acts as a blur. Technically increase ETA of Eular a.

Main Range: How long to apply the effect. 50 means 50% of the time then stops.

Sub-Strength: Keep this below 4. The bigger this is, the more it become less of a blur and more of a sharpener.

Sub-Range: Keep at 50. The bigger the value, the less effect the CFG value affects the output.

Blur Last

Acts as anti-burn by making more noise (ETA) to the end processes.

Main Strength: Strength of the blur-like effect.

Main Range: How much of the time the effect sustained. 100% will make the effect take over.

Sub-Strength: The more this is, the less blurry the result.

Sub-Range: How long to sustain that blur. 0=no blur. 100= all the way. 50 means it will devid the remaining time by half. And then stops the effect.

Force At Start V1

Scheduler applies more CFG in the begging allowing image to have the benefits of high CFG, yet outputting image without artifacts.

Main Strength: CFG multiplier. The more this is, the more CFG value applied in the beginning.

Main Range: How long to apply the effect. 50 means 50% of the time then stops.

Sub-Strength: A blur to apply right after the strong CFG.

Sub-Range: How long to apply that blur.0=no blur. 100= all the way. 50 means it will devid the remaining time by half.

Force Allover

This is supposed to shake all the image up causing a kind of cleaning up.

Main Strength: Modification strength.

Main Range: Shaking frequency. 100 is maximum

Sub-Strength: CFG shift. CFG will increase if >50 and will decrease if <50

Sub-Range: Fading of the effect. 100= no fading, 0= will fade to 0

Clone this wiki locally