forked from extern/easydiffusion
Merge branch 'develop' of github.com:cmdr2/stable-diffusion-ui into develop
This commit is contained in:
commit
10ed23e144
@ -828,7 +828,7 @@ async function makeImage() {
|
|||||||
let successCount = 0
|
let successCount = 0
|
||||||
|
|
||||||
for (let i = 0; i < batchCount; i++) {
|
for (let i = 0; i < batchCount; i++) {
|
||||||
reqBody['seed'] = seed + i
|
reqBody['seed'] = seed + (i * batchSize)
|
||||||
|
|
||||||
let success = await doMakeImage(reqBody)
|
let success = await doMakeImage(reqBody)
|
||||||
|
|
||||||
|
@ -152,50 +152,74 @@
|
|||||||
"trending on Artstation",
|
"trending on Artstation",
|
||||||
"by Agnes Lawrence Pelton",
|
"by Agnes Lawrence Pelton",
|
||||||
"by Akihito Yoshida",
|
"by Akihito Yoshida",
|
||||||
|
"by Alex Grey",
|
||||||
|
"by Alexander Jansson",
|
||||||
|
"by Alphonse Mucha",
|
||||||
"by Andy Warhol",
|
"by Andy Warhol",
|
||||||
"by Artgerm",
|
"by Artgerm",
|
||||||
"by Asaf Hanuka",
|
"by Asaf Hanuka",
|
||||||
"by Aubrey Beardsley",
|
"by Aubrey Beardsley",
|
||||||
"by Banksy",
|
"by Banksy",
|
||||||
|
"by Beeple",
|
||||||
"by Ben Enwonwu",
|
"by Ben Enwonwu",
|
||||||
|
"by Bob Eggleton",
|
||||||
"by Caravaggio Michelangelo Merisi",
|
"by Caravaggio Michelangelo Merisi",
|
||||||
|
"by Caspar David Friedrich",
|
||||||
|
"by Chris Foss",
|
||||||
"by Claude Monet",
|
"by Claude Monet",
|
||||||
|
"by Dan Mumford",
|
||||||
"by David Mann",
|
"by David Mann",
|
||||||
"by Diego Velázquez",
|
"by Diego Velázquez",
|
||||||
"by Disney Animation Studios",
|
"by Disney Animation Studios",
|
||||||
"by Édouard Manet",
|
"by Édouard Manet",
|
||||||
|
"by Esao Andrews",
|
||||||
"by Frida Kahlo",
|
"by Frida Kahlo",
|
||||||
|
"by Gediminas Pranckevicius",
|
||||||
"by Georgia O'Keeffe",
|
"by Georgia O'Keeffe",
|
||||||
|
"by Greg Rutkowski",
|
||||||
|
"by Gustave Doré",
|
||||||
|
"by Gustave Klimt",
|
||||||
"by H.R. Giger",
|
"by H.R. Giger",
|
||||||
"by Hayao Miyazaki",
|
"by Hayao Miyazaki",
|
||||||
"by Henri Matisse",
|
"by Henri Matisse",
|
||||||
|
"by HP Lovecraft",
|
||||||
"by Ivan Shishkin",
|
"by Ivan Shishkin",
|
||||||
|
"by Jack Kirby",
|
||||||
"by Jackson Pollock",
|
"by Jackson Pollock",
|
||||||
|
"by James Jean",
|
||||||
|
"by Jim Burns",
|
||||||
"by Johannes Vermeer",
|
"by Johannes Vermeer",
|
||||||
"by John William Waterhouse",
|
"by John William Waterhouse",
|
||||||
"by Katsushika Hokusai",
|
"by Katsushika Hokusai",
|
||||||
"by Ko Young Hoon",
|
"by Ko Young Hoon",
|
||||||
"by Leonardo da Vinci",
|
"by Leonardo da Vinci",
|
||||||
"by Lisa Frank",
|
"by Lisa Frank",
|
||||||
|
"by M.C. Escher",
|
||||||
"by Mahmoud Saïd",
|
"by Mahmoud Saïd",
|
||||||
"by Makoto Shinkai",
|
"by Makoto Shinkai",
|
||||||
|
"by Marc Simonetti",
|
||||||
"by Mark Brooks",
|
"by Mark Brooks",
|
||||||
"by Michelangelo",
|
"by Michelangelo",
|
||||||
"by Paul Klee",
|
|
||||||
"by Pablo Picasso",
|
"by Pablo Picasso",
|
||||||
|
"by Paul Klee",
|
||||||
|
"by Peter Mohrbacher",
|
||||||
"by Pierre-Auguste Renoir",
|
"by Pierre-Auguste Renoir",
|
||||||
"by Pixar Animation Studios",
|
"by Pixar Animation Studios",
|
||||||
"by Rembrandt",
|
"by Rembrandt",
|
||||||
"by Richard Dadd",
|
"by Richard Dadd",
|
||||||
"by Rossdraws",
|
"by Rossdraws",
|
||||||
|
"by Salvador Dalí",
|
||||||
"by Sam Does Arts",
|
"by Sam Does Arts",
|
||||||
"by Sandro Botticelli",
|
"by Sandro Botticelli",
|
||||||
"by Salvador Dalí",
|
"by Ted Nasmith",
|
||||||
"by Tivadar Csontváry Kosztka",
|
|
||||||
"by Thomas Kinkade",
|
"by Thomas Kinkade",
|
||||||
"by Yoshitaka Amano",
|
"by Tivadar Csontváry Kosztka",
|
||||||
|
"by Victo Ngai",
|
||||||
|
"by Vincent Di Fate",
|
||||||
"by Vincent van Gogh",
|
"by Vincent van Gogh",
|
||||||
"by wlop"
|
"by Wes Anderson",
|
||||||
|
"by wlop",
|
||||||
|
"by Yoshitaka Amano"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -14,6 +14,7 @@ OUTPUT_DIRNAME = "Stable Diffusion UI" # in the user's home folder
|
|||||||
from fastapi import FastAPI, HTTPException
|
from fastapi import FastAPI, HTTPException
|
||||||
from starlette.responses import FileResponse
|
from starlette.responses import FileResponse
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
import logging
|
||||||
|
|
||||||
from sd_internal import Request, Response
|
from sd_internal import Request, Response
|
||||||
|
|
||||||
@ -122,5 +123,12 @@ def read_modifiers():
|
|||||||
def read_home_dir():
|
def read_home_dir():
|
||||||
return {outpath}
|
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
|
# start the browser ui
|
||||||
import webbrowser; webbrowser.open('http://localhost:9000')
|
import webbrowser; webbrowser.open('http://localhost:9000')
|
||||||
|
Loading…
Reference in New Issue
Block a user