From 956b3d89db62a853bc7cdac250123ba8c2fc22f5 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 23 Sep 2022 00:19:05 +0530 Subject: [PATCH 1/8] New samplers for txt2img: "ddim", "plms", "heun", "euler", "euler_a", "dpm2", "dpm2_a", "lms" --- ui/index.html | 22 +- ui/sd_internal/__init__.py | 3 + ui/sd_internal/ddim_callback.patch | 323 ++++++++++++++++++++++------- ui/sd_internal/runtime.py | 37 ++-- ui/server.py | 2 + 5 files changed, 291 insertions(+), 96 deletions(-) diff --git a/ui/index.html b/ui/index.html index e8afeae1..dd1924b0 100644 --- a/ui/index.html +++ b/ui/index.html @@ -304,7 +304,7 @@
 
Stable Diffusion is starting.. -

Stable Diffusion UI v2.14

+

Stable Diffusion UI v2.15

@@ -353,6 +353,18 @@
  • (images at once)
  • +
  • + +
  • +
  • +
  • +
  • +
  • + +
    +
  • +
    -

    Stable Diffusion UI v2.15

    + + +
    + +
    +
    +
    +
    + Stable Diffusion is starting..
    @@ -337,23 +467,13 @@
     
    -
    -

    Advanced Settings

    +
    +

    Image Settings

      -
    • -
    • -
    • - - -
    • -
    • -
      -
    • -
    • (images at once)
    • -
    • +
    • Image Settings
    • +
    • +
    • (images at once)
    • +
    • -
    • +
    • -
    • -
    • + +
    • -
    • -
    • -

    • -
    •  
    • -
    • -
    • -
    • -
    • -
    • - +
    • +
    • +

    • +
      -
    • + +
    • Render Settings
    • +
    • +
    • +
    • + + +
    • +
    • +
      +
    • The system-related settings have been moved to the top-right corner.
    @@ -433,8 +559,12 @@
    -
    -
    Type a prompt and press the "Make Image" button.

    You can set an "Initial Image" if you want to guide the AI.

    You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.

    Click "Advanced Settings" for additional settings like seed, image size, number of images to generate etc.

    Enjoy! :)
    +
    +
    +
    + Type a prompt and press the "Make Image" button.

    You can set an "Initial Image" if you want to guide the AI.

    You can also add modifiers like "Realistic", "Pencil Sketch", "ArtStation" etc by browsing through the "Image Modifiers" section and selecting the desired modifiers.

    Click "Advanced Settings" for additional settings like seed, image size, number of images to generate etc.

    Enjoy! :) +
    +
    @@ -655,12 +785,12 @@ function setStatus(statusType, msg, msgType) { if (msgType == 'error') { // msg = '' + msg + '' - serverStatusColor.style.backgroundColor = 'red' + serverStatusColor.style.color = 'red' serverStatusMsg.style.color = 'red' serverStatusMsg.innerHTML = 'Stable Diffusion has stopped' } else if (msgType == 'success') { // msg = '' + msg + '' - serverStatusColor.style.backgroundColor = 'green' + serverStatusColor.style.color = 'green' serverStatusMsg.style.color = 'green' serverStatusMsg.innerHTML = 'Stable Diffusion is ready' serverStatus = 'online' From ae108bb603a882997c54e733e53052f3c58b0933 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 23 Sep 2022 17:19:11 +0530 Subject: [PATCH 8/8] Increase the max guidance scale --- ui/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/index.html b/ui/index.html index 3ef2cedb..5b2675f5 100644 --- a/ui/index.html +++ b/ui/index.html @@ -531,7 +531,7 @@
  • -
  • +


  • @@ -1321,8 +1321,8 @@ function updateGuidanceScale() { function updateGuidanceScaleSlider() { if (guidanceScaleField.value < 0) { guidanceScaleField.value = 0 - } else if (guidanceScaleField.value > 20) { - guidanceScaleField.value = 20 + } else if (guidanceScaleField.value > 50) { + guidanceScaleField.value = 50 } guidanceScaleSlider.value = guidanceScaleField.value * 10