tiny critical fixes
gotta keep that outpaint mask at 1
This commit is contained in:
parent
22e1152da0
commit
8b4a35d030
2 changed files with 7 additions and 4 deletions
|
@ -650,7 +650,7 @@ makeSlider(
|
||||||
makeSlider(
|
makeSlider(
|
||||||
"HRfix Denoising",
|
"HRfix Denoising",
|
||||||
document.getElementById("hrDenoising"),
|
document.getElementById("hrDenoising"),
|
||||||
"denoising_strength",
|
"hr_denoising_strength",
|
||||||
0.0,
|
0.0,
|
||||||
1.0,
|
1.0,
|
||||||
0.05,
|
0.05,
|
||||||
|
@ -1141,9 +1141,9 @@ function loadSettings() {
|
||||||
: localStorage.getItem("openoutpaint/hr_scale");
|
: localStorage.getItem("openoutpaint/hr_scale");
|
||||||
|
|
||||||
let _hrfix_denoising =
|
let _hrfix_denoising =
|
||||||
localStorage.getItem("openoutpaint/denoising_strength") === null
|
localStorage.getItem("openoutpaint/hr_denoising_strength") === null
|
||||||
? 0.7
|
? 0.7
|
||||||
: localStorage.getItem("openoutpaint/denoising_strength");
|
: localStorage.getItem("openoutpaint/hr_denoising_strength");
|
||||||
// set the values into the UI
|
// set the values into the UI
|
||||||
document.getElementById("maskBlur").value = Number(_mask_blur);
|
document.getElementById("maskBlur").value = Number(_mask_blur);
|
||||||
document.getElementById("seed").value = Number(_seed);
|
document.getElementById("seed").value = Number(_seed);
|
||||||
|
|
|
@ -146,6 +146,9 @@ const _dream = async (endpoint, request) => {
|
||||||
request.width = newWidth;
|
request.width = newWidth;
|
||||||
request.height = newHeight;
|
request.height = newHeight;
|
||||||
}
|
}
|
||||||
|
if (endpoint == "txt2img") {
|
||||||
|
request.denoising_strength = stableDiffusionData.hr_denoising_strength;
|
||||||
|
}
|
||||||
const response = await fetch(apiURL, {
|
const response = await fetch(apiURL, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -2146,7 +2149,7 @@ const img2imgTool = () =>
|
||||||
array.appendChild(state.ctxmenu.keepUnmaskedLabel);
|
array.appendChild(state.ctxmenu.keepUnmaskedLabel);
|
||||||
menu.appendChild(array);
|
menu.appendChild(array);
|
||||||
menu.appendChild(state.ctxmenu.keepUnmaskedBlurSlider);
|
menu.appendChild(state.ctxmenu.keepUnmaskedBlurSlider);
|
||||||
menu.appendChild(state.ctxmenu.keepUnmaskedBlurSliderLinebreak);
|
// menu.appendChild(state.ctxmenu.keepUnmaskedBlurSliderLinebreak);
|
||||||
menu.appendChild(state.ctxmenu.inpaintTypeSelect);
|
menu.appendChild(state.ctxmenu.inpaintTypeSelect);
|
||||||
menu.appendChild(state.ctxmenu.denoisingStrengthSlider);
|
menu.appendChild(state.ctxmenu.denoisingStrengthSlider);
|
||||||
const btnArray2 = document.createElement("div");
|
const btnArray2 = document.createElement("div");
|
||||||
|
|
Loading…
Reference in a new issue