Coder Social home page Coder Social logo

advanced-loopback-for-sd-webui's Introduction

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).

advanced-loopback-for-sd-webui's People

Contributors

extraltodeus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.