Merge branch 'develop' of github.com:cmdr2/stable-diffusion-ui into develop

This commit is contained in:
cmdr2 2022-09-08 21:20:39 +05:30
commit 10ed23e144
3 changed files with 38 additions and 6 deletions

View File

@ -828,7 +828,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)

View File

@ -152,50 +152,74 @@
"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 Jack Kirby",
"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 wlop"
"by Wes Anderson",
"by wlop",
"by Yoshitaka Amano"
]
],
[

View File

@ -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
@ -122,5 +123,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')