inu-ai / gif2gif

Automatic1111 gif extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gif2gif

Automatic1111 Stable Diffusion WebUI GIF Extension

gif2gif script extension

The purpose of this script is to accept an animated gif as input, process frames as img2img typically would, and recombine them back into an animated gif. Intended to provide a fun, fast, gif-to-gif workflow that supports new models and methods such as InstructPix2Pix. Drop in a gif and go. Referenced code from prompts_from_file.

Instructions:

  • img2img batch count and size represent completed GIFs, not individual images.
    • eg a gif with 30 frames, batch count of 2, batch size of 3, will result in 6 gifs (180 images).
  • Drop or select gif in the script's box; a preview should appear if it is a valid animated gif.
  • Inpainting works, but currently limited to one mask applied to all frames equally.
  • Adjust desired FPS if needed/wanted. Default slider position is original FPS.
  • Add interpolation frames if wanted. Preview should render.
    • Count of interp frames represent the number of blend steps between keyframes.
    • This is a very simple dynamic interp function; the keyframes are left as-is.
    • When actual FPS reaches 50, the maximum, the resultant gif will slow and extend to accomodate interp.
  • Results are dropped into outputs/img2img/gif2gif

Tips:

  • Configure and process the gif in img2img (it'll use the first frame) before running the script. Find a good seed!
  • Interpolation is not always necessary nor helpful.

Installation:

  • Install from the Automatic1111 WebUI extensions list, restart UI or
  • Clone this repo into your Automatic1111 WebUI /extensions folder, restart UI

Changelog:

image

Rdownload

sourcegif2gif-0052

About

Automatic1111 gif extension


Languages

Language:Python 100.0%