From 0dfbfafb820d123d7c933f11e81eb46f576e7251 Mon Sep 17 00:00:00 2001 From: Blub <32146549+ArtificialLegacy@users.noreply.github.com> Date: Tue, 6 Sep 2022 21:24:08 -0400 Subject: [PATCH 1/7] fixes generating in parallel not updating seed correctly --- ui/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/index.html b/ui/index.html index e67d5b33..530be365 100644 --- a/ui/index.html +++ b/ui/index.html @@ -769,7 +769,7 @@ async function makeImage() { let successCount = 0 for (let i = 0; i < batchCount; i++) { - reqBody['seed'] = seed + i + reqBody['seed'] = seed + (i * batchSize) let success = await doMakeImage(reqBody) From 7b927036247fbd477a4f7b442fb49ebdef2504f0 Mon Sep 17 00:00:00 2001 From: Frode Fuglestad Date: Thu, 8 Sep 2022 00:29:49 +0200 Subject: [PATCH 2/7] Update modifiers.json Added missing artists to the list of available styles --- ui/modifiers.json | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/ui/modifiers.json b/ui/modifiers.json index ab7131e8..72751d4c 100644 --- a/ui/modifiers.json +++ b/ui/modifiers.json @@ -152,50 +152,73 @@ "trending on Artstation", "by Agnes Lawrence Pelton", "by Akihito Yoshida", + "by Alex Grey", + "by Alexander Jansson", + "by Alphonse Mucha", "by Andy Warhol", "by Artgerm", "by Asaf Hanuka", "by Aubrey Beardsley", "by Banksy", + "by Beeple", "by Ben Enwonwu", + "by Bob Eggleton", "by Caravaggio Michelangelo Merisi", + "by Caspar David Friedrich", + "by Chris Foss" "by Claude Monet", + "by Dan Mumford", "by David Mann", "by Diego Velázquez", "by Disney Animation Studios", "by Édouard Manet", + "by Esao Andrews", "by Frida Kahlo", + "by Gediminas Pranckevicius", "by Georgia O'Keeffe", + "by Greg Rutkowski", + "by Gustave Doré", + "by Gustave Klimt", "by H.R. Giger", "by Hayao Miyazaki", "by Henri Matisse", + "by HP Lovecraft", "by Ivan Shishkin", "by Jackson Pollock", + "by James Jean", + "by Jim Burns" "by Johannes Vermeer", "by John William Waterhouse", "by Katsushika Hokusai", "by Ko Young Hoon", "by Leonardo da Vinci", "by Lisa Frank", + "by M.C. Escher", "by Mahmoud Saïd", "by Makoto Shinkai", + "by Marc Simonetti", "by Mark Brooks", "by Michelangelo", - "by Paul Klee", "by Pablo Picasso", + "by Paul Klee", + "by Peter Mohrbacher", "by Pierre-Auguste Renoir", "by Pixar Animation Studios", "by Rembrandt", "by Richard Dadd", "by Rossdraws", + "by Salvador Dalí", "by Sam Does Arts", "by Sandro Botticelli", - "by Salvador Dalí", - "by Tivadar Csontváry Kosztka", + "by Ted Nasmith", "by Thomas Kinkade", - "by Yoshitaka Amano", + "by Tivadar Csontváry Kosztka", + "by Victo Ngai", + "by Vincent Di Fate", "by Vincent van Gogh", + "by Wes Anderson", "by wlop" + "by Yoshitaka Amano", ] ], [ From d96cc79814544c186bb22d493413b47b060ee453 Mon Sep 17 00:00:00 2001 From: Frode Fuglestad Date: Thu, 8 Sep 2022 00:32:52 +0200 Subject: [PATCH 3/7] Update modifiers.json Added Jack Kirby to the list of artists --- ui/modifiers.json | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/modifiers.json b/ui/modifiers.json index 72751d4c..653f4d91 100644 --- a/ui/modifiers.json +++ b/ui/modifiers.json @@ -184,6 +184,7 @@ "by Henri Matisse", "by HP Lovecraft", "by Ivan Shishkin", + "by Jack Kirby", "by Jackson Pollock", "by James Jean", "by Jim Burns" From 9ec35d2bfe76987f7cf45cb61f96bb1adebb68b0 Mon Sep 17 00:00:00 2001 From: Frode Fuglestad Date: Thu, 8 Sep 2022 00:35:01 +0200 Subject: [PATCH 4/7] Update modifiers.json --- ui/modifiers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/modifiers.json b/ui/modifiers.json index 653f4d91..0ebe444a 100644 --- a/ui/modifiers.json +++ b/ui/modifiers.json @@ -187,7 +187,7 @@ "by Jack Kirby", "by Jackson Pollock", "by James Jean", - "by Jim Burns" + "by Jim Burns", "by Johannes Vermeer", "by John William Waterhouse", "by Katsushika Hokusai", From e914378dd9b045783a35c22c21ec03bef38368f4 Mon Sep 17 00:00:00 2001 From: Frode Fuglestad Date: Thu, 8 Sep 2022 00:36:27 +0200 Subject: [PATCH 5/7] Update modifiers.json --- ui/modifiers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/modifiers.json b/ui/modifiers.json index 0ebe444a..fb1a7de5 100644 --- a/ui/modifiers.json +++ b/ui/modifiers.json @@ -165,7 +165,7 @@ "by Bob Eggleton", "by Caravaggio Michelangelo Merisi", "by Caspar David Friedrich", - "by Chris Foss" + "by Chris Foss", "by Claude Monet", "by Dan Mumford", "by David Mann", From 4922877816c81e07dde6006f86d5c7ab83ab4a12 Mon Sep 17 00:00:00 2001 From: Frode Fuglestad Date: Thu, 8 Sep 2022 00:37:49 +0200 Subject: [PATCH 6/7] Update modifiers.json --- ui/modifiers.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/modifiers.json b/ui/modifiers.json index fb1a7de5..9eb2e7f5 100644 --- a/ui/modifiers.json +++ b/ui/modifiers.json @@ -218,8 +218,8 @@ "by Vincent Di Fate", "by Vincent van Gogh", "by Wes Anderson", - "by wlop" - "by Yoshitaka Amano", + "by wlop", + "by Yoshitaka Amano" ] ], [ From 6efbe62dca03c3689eb46d0f80684e05b1329a30 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 8 Sep 2022 18:43:22 +0530 Subject: [PATCH 7/7] Don't log /ping healthcheck requests --- ui/server.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/server.py b/ui/server.py index 9a55cb5f..3c9b1fcd 100644 --- a/ui/server.py +++ b/ui/server.py @@ -14,6 +14,7 @@ OUTPUT_DIRNAME = "Stable Diffusion UI" # in the user's home folder from fastapi import FastAPI, HTTPException from starlette.responses import FileResponse from pydantic import BaseModel +import logging from sd_internal import Request, Response @@ -116,5 +117,12 @@ def read_modifiers(): def read_home_dir(): return {outpath} +# don't log /ping requests +class HealthCheckLogFilter(logging.Filter): + def filter(self, record: logging.LogRecord) -> bool: + return record.getMessage().find('/ping') == -1 + +logging.getLogger('uvicorn.access').addFilter(HealthCheckLogFilter()) + # start the browser ui import webbrowser; webbrowser.open('http://localhost:9000')