Skip to content

Marcus-Arcadius/advanced-loopback-for-sd-webui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

advanced-loopback-for-sd-webui

This script is made to be used with the AUTOMATIC1111 webui.

Installation

Drop the script into your /scripts folder.

Use the --allow-code argument.

If you're using a Google Colab, you can add this in a code block before the one that starts the webui :

!wget https://raw.githubusercontent.com/Extraltodeus/advanced-loopback-for-sd-webui/main/advanced_loopback.py -O /content/stable-diffusion-webui/scripts/advanced_loopback.py

Features

I will only describe the less obvious feats since you don't need to be explained what a zoom is :)

The scripts UI looks like this and will show up in your img2img tab :

image

  • Use first image colors (custom color correction)

This feature will use the colors from the init image instead of the last generated one (like the one already availaible does). This allows to avoid loosing colors when using the zoom feature.

  • Direction X/Y

Will shift the cropped/zoomed next image up/down/left/right. The value is limited by the zoom level.

  • Denoising strength start/end

image

This allows for a progressive parameter change (or sinusoidal, read below). Without the sine option enabled, it will simply put in proportion the starting value slider with the ending value.

For example if you set it like this :

image

The 5 first generated images will have a value of 0.2, then from 6 to 10 will ramp up from 0.2 to 0.6.

This can be nice the have some visual rest in between the transitions while zooming.

  • Saturation enhancement per image

Will increase/decrease slightly the saturation from one image to the next.

If you are using the color correction, it will ony influence the contrasts.

  • Sine/exponentiation

image

Allows a sinusoidal variation of these two parameters (the widest curve in the image below).

Both of the options uses the start/end input boxes above. The maximum strength will be in between the minimum and maximum value and will then loop.

The exponentiation sliders on the right kmakes the curves tighter, which will make the changes more sudden.

expcurves

The phase difference allows you to have the two variations not synchronised

phase

  • prompt/seed options

image

The multiple prompts option will switch prompt after the "end" imagee has been reached (refering to the input box).

So 0-10 will switch prompt every 10 images.

The prompts have to be negative/positive, one per line. Just leave a blank line if you do not wish to use a negative prompt.

image

Note : "Same seed for everything" will accentuate the samplers noise. Euler A with the zoom will mostly create "warp drive" effects like in the example below.

Example

Unedited output with prompt switching/zoom/sine variations/same seed per prompt.

"What you will see is 100% artificial" and birth to death related prompts.

example.mp4

End note

For now the script does not output a video immediatly. Just the images. I personnaly use ffmpeg to put it all together but you can go check on the custom scripts page as there is at least one that allows to do that with the webui (even though I haven't tested it).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%