Skip to content

Commit

Permalink
remove sdxl_beta-specific overrides, change default model to SDXL 1.0…
Browse files Browse the repository at this point in the history
…, and update about
  • Loading branch information
Efreak committed Nov 5, 2023
1 parent e7d8a56 commit a0f2421
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@

This is a fork of aqualxx/stable-ui, an unmaintained frontend for <a href="https://aihorde.net">AI Horde</a>
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.
Expand Down
2 changes: 1 addition & 1 deletion src/components/WorkerBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const status = computed(() => {
<div>
<el-collapse style="margin-top: 0.5rem; --el-collapse-header-height: 2.5rem">
<el-collapse-item :title="worker.models?.length + ' model(s)'" name="1">
<strong>{{worker.models?.length === 0 ? "SDXL_beta::stability.ai#6901" : ""}}</strong>
<strong>{{worker.models?.length === 0 ? "SDXL 1.0" : ""}}</strong>
<strong v-for="(model, index) of worker.models" :key="index">
{{model}}{{index === worker.models?.length ? "" : ", "}}
</strong>
Expand Down
2 changes: 1 addition & 1 deletion src/router/handleUrlParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
8 changes: 4 additions & 4 deletions src/stores/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -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<IModelData>(() => modelsData.value.find(el => el.name === selectedModel.value) || {});
const filteredAvailableModels = computed(() => {
if (availableModels.value.length === 0) return [];
Expand All @@ -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";
});
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/views/AboutView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import BaseLink from '@/components/BaseLink.vue';
<h3 style="margin-top: 0">THIS FORK WILL NOT BE MAINTAINED OR UODATED</h3>
<div>This is a fork of aqualxx/stable-ui, an unmaintained frontend for <a href="https://aihorde.net">AI Horde</a> 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.</div>
<div>Update: I applied a fix to the leaderboard, <a href="https://discord.com/channels/781145214752129095/1107629376889172098/1157447364827697182>as found by @super.skirv on Discord</a>. </div>
<div>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.</div>
<div></div>
<div></div>
<h1 style="margin-top: 0">Stable UI</h1>
Expand Down

0 comments on commit a0f2421

Please sign in to comment.