From a0f24210ef957e68f97864372249b388dd9721e7 Mon Sep 17 00:00:00 2001 From: Efreak Date: Sun, 5 Nov 2023 14:39:32 -0800 Subject: [PATCH] remove sdxl_beta-specific overrides, change default model to SDXL 1.0, and update about --- README.md | 10 +++++++--- src/components/WorkerBox.vue | 2 +- src/router/handleUrlParams.ts | 2 +- src/stores/generator.ts | 8 ++++---- src/views/AboutView.vue | 1 + 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0e34216..06e04aa 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,18 @@ This is a fork of aqualxx/stable-ui, an unmaintained frontend for AI Horde crowd-sourced stable diffusion. It contains all the same bugs and limitations the original stable-ui -contains, but has been updated to support SDXL, which currently requires a batch size of 2, and recommends a -minimum of 1024x1024. Instead of updating this properly, I've simply added a check to see if the model +contains, but has been updated to support SDXL, ~~which currently requires a batch size of 2~~, and recommends a +minimum of 1024x1024. ~~Instead of updating this properly, I've simply added a check to see if the model includes SDXL, and changed the requested number of images to 2; that means for every 1 SDXL image you -request here, you'll get 2 images back instead of 1. The only niceties I've added beyond this is to set the +request here, you'll get 2 images back instead of 1.~~ The only niceties I've added beyond this is to set the default model to SDXL and the defaults size to 1024x1024. Everything else is the same. Update: I applied a fix to the leaderboard, [as found by @super.skirv on Discord](https://discord.com/channels/781145214752129095/1107629376889172098/1157447364827697182). +Update: I applied a fix to space out requests because horde now has a rate limit on async endpoints. Since Horde +now supports SDXL officially, I also swapped out sdxl_beta model name for SDXL 1.0 and removed the inpainting +and image amount overrides from it. + # stable-ui 🔥 [Stable UI](https://aqualxx.github.io/stable-ui/) is a web user interface designed to generate, save, and view images using Stable Diffusion, with the goal being able to provide Stable Diffusion to anyone for 100% free. diff --git a/src/components/WorkerBox.vue b/src/components/WorkerBox.vue index 9e50d0d..5a0d7e8 100644 --- a/src/components/WorkerBox.vue +++ b/src/components/WorkerBox.vue @@ -66,7 +66,7 @@ const status = computed(() => {
- {{worker.models?.length === 0 ? "SDXL_beta::stability.ai#6901" : ""}} + {{worker.models?.length === 0 ? "SDXL 1.0" : ""}} {{model}}{{index === worker.models?.length ? "" : ", "}} diff --git a/src/router/handleUrlParams.ts b/src/router/handleUrlParams.ts index 98ef267..ffe0c61 100644 --- a/src/router/handleUrlParams.ts +++ b/src/router/handleUrlParams.ts @@ -43,7 +43,7 @@ const handleUrlParams = function() { prompt: paramMap.get("prompt") || "", sampler_name: paramMap.get("sampler_name") || "k_euler", seed: paramMap.get("seed") || "", - modelName: paramMap.get("model_name") || "SDXL_beta::stability.ai#6901", + modelName: paramMap.get("model_name") || "SDXL 1.0", steps: Number(paramMap.get("steps") || 30), cfg_scale: Number(paramMap.get("cfg_scale") || 7), height: Number(paramMap.get("height") || 512), diff --git a/src/stores/generator.ts b/src/stores/generator.ts index 558c660..e7c65d9 100644 --- a/src/stores/generator.ts +++ b/src/stores/generator.ts @@ -132,7 +132,7 @@ export const useGeneratorStore = defineStore("generator", () => { model: { name: "Model", enabled: false, - selected: ["SDXL_beta::stability.ai#6901"], + selected: ["SDXL 1.0"], noneMessage: "Failed to generate: No model selected.", mapToParam: el => el.modelName, }, @@ -188,7 +188,7 @@ export const useGeneratorStore = defineStore("generator", () => { } return selectedModelData.value?.description || "Not Found!"; }) - const selectedModel = ref("SDXL_beta::stability.ai#6901"); + const selectedModel = ref("SDXL 1.0"); const selectedModelData = computed(() => modelsData.value.find(el => el.name === selectedModel.value) || {}); const filteredAvailableModels = computed(() => { if (availableModels.value.length === 0) return []; @@ -197,7 +197,7 @@ export const useGeneratorStore = defineStore("generator", () => { return el.value.includes("inpainting") && el.value !== "Stable Diffusion 2 Depth"; } if (generatorType.value === "Img2Img") { - return el.value !== "stable_diffusion_2.0" && !el.value.includes("inpainting") && el.value !== "SDXL_beta::stability.ai#6901"; + return el.value !== "stable_diffusion_2.0" && !el.value.includes("inpainting"); } return !el.value.includes("inpainting") && el.value !== "pix2pix" && el.value !== "Stable Diffusion 2 Depth"; }); @@ -458,7 +458,7 @@ export const useGeneratorStore = defineStore("generator", () => { clip_skip: currentClipSkip, karras: currentKarras, hires_fix: currentHiResFix, - n: (currentModel.indexOf('SDXL') > -1 ? 2 : 1) // SDXL requires 2 images. + n: 1 }, nsfw: nsfw.value, censor_nsfw: !nsfw.value, diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue index 543a22d..bc5ece0 100644 --- a/src/views/AboutView.vue +++ b/src/views/AboutView.vue @@ -11,6 +11,7 @@ import BaseLink from '@/components/BaseLink.vue';

THIS FORK WILL NOT BE MAINTAINED OR UODATED

This is a fork of aqualxx/stable-ui, an unmaintained frontend for AI Horde crowd-sourced stable diffusion. It contains all the same bugs and limitations the original stable-ui contains, but has been updated to support SDXL, which currently requires a batch size of 2, and recommends a minimum of 1024x1024. Instead of updating this properly, I've simply added a check to see if the model includes SDXL, and changed the requested number of images to 2; that means for every 1 SDXL image you request here, you'll get 2 images back instead of 1. The only niceties I've added beyond this is to set the default model to SDXL and the defaults size to 1024x1024. Everything else is the same.
Update: I applied a fix to the leaderboard, Stable UI