Coder Social home page Coder Social logo

gif2gif's Introduction

gif2gif

Automatic1111 Stable Diffusion WebUI GIF/APNG/WebP Extension

gif2gif script extension

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

Supported inputs/output:

  • Graphics Interchange Format (GIF)
  • Animated Portable Network Graphics (APNG)
  • Google lossless image (WebP)

combined

Experimental/WIP similar repos:

  • keyframer - Multiple images in same latent space. Good for keyframes.
  • frame2frame - Handles video files (and gifs).

Instructions:

  • For ControlNet support, make sure to enable "Allow other script to control this extension" in settings.
  • img2img batch count represents completed animations, not individual images.
  • All images in a single batch will be blended together. May help with consistency between frames.
  • Drop or select file in the script's box; a preview should appear if it is a valid animated image.
  • Inpainting works, but currently limited to one mask applied to all frames equally.
    • Ensure the img2img Inpaint tab is selected before pressing a send to.. button.
    • Blended image may take some time to generate.
  • Results are displayed in output gallery on right side.
  • Optionally blend output images. This will blend batches and ControlNet detectmaps together into one image.
  • ControlNet extension handling improved:
    • "Target ControlNet models" dropdown added; specifies which models to replace input image with frames.
    • Allows, for example, a static depth background while animation feeds openpose.

Tips:

  • Configure and process the image in img2img (it'll use the first frame) before running the script. Find a good seed!
  • If you add an image into ControlNet image window, it will default to that image for guidance for ALL frames.

Installation:

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

Changelog:

  • 5/13/23: Made multiple output blending optional.
  • 4/25/23: Extended support for APNG and WebP files.
  • 4/18/23: Adjusted inpainting functionality to act more predictably with current A1111 release.
  • 4/17/23: Pared back rarely-used options to focus on primary functions (made 'old' branch). Improved ControlNet handling.

gif2gif's People

Contributors

timmahw avatar lonicamewinsky avatar harvester62 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.