Giter Site home page Giter Site logo

prompt-interpolation-script-for-sd-webui's Introduction

Credits to feffy380 who had this idea before me and whose script is helping to improve mine : https://github.com/feffy380/prompt-morph
I have given up, I am not interested in this extension anymore. There will be no future update.

Features

  • Interpolate between two positive prompts, it uses the AND syntaxes so it doesn't work for DDIM and PLMS.
  • Create a gif with the generated images.
  • Works for both txt2img and img2img.
  • You can change any parameter, it should work. For instance your can increase your batch count and batch size to interpolate between many seeds at the same time.
  • Example

    I interpolated between pyra and mythra from xenoblade chronicles 2.
    Here is the gif that the script generated.

    mythra-swap-to-pyra

    Installation

  • Download the file "prompt_interpolation.py"
  • Move it to your "scripts/" folder, see https://github.com/AUTOMATIC1111/stable-diffusion-webui
  • Restart you webui.
  • Usage

  • Enter your first prompt in the usual prompt section, for instance
  • 1girl, mythra from xenoblade chronicles, best quality, upper body
    
  • Select "Script > Prompts interpolation"
  • Enter your second prompt in the "Interpolation Prompt" textbox, for instance
  • 1girl, pyra from xenoblade chronicles, best quality, upper body
    
  • If you have any negative that you want all of your generated images to share, add them to the usual negative prompt textbox, for instance
  • flat color, blush, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, male focus, solo male, poorly drawn, deformed, poorly drawn face, (extra leg:1.3), (extra fingers:1.2), out of frame
    
  • Select the number of image you want to generate between the first prompt and the second prompt. For the example I choosed 128.
  • Check "Make a gif"
  • You can choose the number of milliseconds you want between each frame of the generated gif. I choosed 50.
  • Click the "Generate" button and wait... My user interface now looks like this.
  • image

  • You can find the generated gif in "outputs/txt2img-grids"
  • prompt-interpolation-script-for-sd-webui's People

    Contributors

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