be much less annoying about out of date webUI but also disable HRfix outright
This commit is contained in:
parent
92f91e23ae
commit
db725d54b5
1 changed files with 7 additions and 2 deletions
|
@ -345,9 +345,13 @@ async function testHostConnection() {
|
|||
);
|
||||
const optionsdata = await response.json();
|
||||
if (optionsdata["use_scale_latent_for_hires_fix"]) {
|
||||
const message = `You are using an outdated version of A1111 webUI.\nThe HRfix options will not work until you update to at least commit ef27a18\n(https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/ef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d)\nor newer.`;
|
||||
const message = `You are using an outdated version of A1111 webUI.\nThe HRfix options will not work until you update to at least commit ef27a18 or newer.\n(https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/ef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d)\nHRfix options have been disabled.`;
|
||||
console.error(message);
|
||||
alert(message);
|
||||
if (notify) alert(message);
|
||||
document
|
||||
.getElementById("cbxHRFix")
|
||||
.setAttribute("disabled", "disabled");
|
||||
stableDiffusionData.enable_hr = false;
|
||||
}
|
||||
switch (response.status) {
|
||||
case 200: {
|
||||
|
@ -564,6 +568,7 @@ const hrFixUpscalerAutoComplete = createAutoComplete(
|
|||
"HRfix Upscaler",
|
||||
document.getElementById("hrFixUpscaler")
|
||||
);
|
||||
|
||||
hrFixUpscalerAutoComplete.onchange.on(({value}) => {
|
||||
stableDiffusionData.hr_upscaler = value;
|
||||
localStorage.setItem(`openoutpaint/hr_upscaler`, value);
|
||||
|
|
Loading…
Reference in a new issue