EugeoSynthesisThirtyTwo / prompt-interpolation-script-for-sd-webui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"
  • About


    Languages

    Language:Python 100.0%