adds denoising slider for hrfix
This commit is contained in:
parent
6e14e3741f
commit
69205e5647
2 changed files with 17 additions and 2 deletions
|
@ -103,6 +103,7 @@
|
||||||
<div id="hrFixScale"></div>
|
<div id="hrFixScale"></div>
|
||||||
<label id="hrFixLabel">Choose HRfix upscaler</label>
|
<label id="hrFixLabel">Choose HRfix upscaler</label>
|
||||||
<div id="hrFixUpscaler"></div>
|
<div id="hrFixUpscaler"></div>
|
||||||
|
<div id="hrDenoising"></div>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="cbxRestoreFaces"
|
id="cbxRestoreFaces"
|
||||||
|
@ -189,7 +190,7 @@
|
||||||
<br />
|
<br />
|
||||||
<span id="version">
|
<span id="version">
|
||||||
<a href="https://github.com/zero01101/openOutpaint" target="_blank">
|
<a href="https://github.com/zero01101/openOutpaint" target="_blank">
|
||||||
Alpha release v0.0.12.3
|
Alpha release v0.0.12.5
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
|
@ -339,7 +340,7 @@
|
||||||
|
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<script src="js/prompt.js?v=7a1c68c" type="text/javascript"></script>
|
<script src="js/prompt.js?v=7a1c68c" type="text/javascript"></script>
|
||||||
<script src="js/index.js?v=ddaf955" type="text/javascript"></script>
|
<script src="js/index.js?v=34970e7" type="text/javascript"></script>
|
||||||
|
|
||||||
<script
|
<script
|
||||||
src="js/ui/floating/history.js?v=fc92d14"
|
src="js/ui/floating/history.js?v=fc92d14"
|
||||||
|
|
14
js/index.js
14
js/index.js
|
@ -641,6 +641,17 @@ makeSlider(
|
||||||
0.1
|
0.1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
makeSlider(
|
||||||
|
"HRfix Denoising",
|
||||||
|
document.getElementById("hrDenoising"),
|
||||||
|
"denoising_strength",
|
||||||
|
0.0,
|
||||||
|
1.0,
|
||||||
|
0.1,
|
||||||
|
0.7,
|
||||||
|
0.01
|
||||||
|
);
|
||||||
|
|
||||||
function changeMaskBlur() {
|
function changeMaskBlur() {
|
||||||
stableDiffusionData.mask_blur = parseInt(
|
stableDiffusionData.mask_blur = parseInt(
|
||||||
document.getElementById("maskBlur").value
|
document.getElementById("maskBlur").value
|
||||||
|
@ -661,15 +672,18 @@ function changeHiResFix() {
|
||||||
var hrfSlider = document.getElementById("hrFixScale");
|
var hrfSlider = document.getElementById("hrFixScale");
|
||||||
var hrfOpotions = document.getElementById("hrFixUpscaler");
|
var hrfOpotions = document.getElementById("hrFixUpscaler");
|
||||||
var hrfLabel = document.getElementById("hrFixLabel");
|
var hrfLabel = document.getElementById("hrFixLabel");
|
||||||
|
var hrfDenoiseSlider = document.getElementById("hrDenoising");
|
||||||
if (stableDiffusionData.enable_hr) {
|
if (stableDiffusionData.enable_hr) {
|
||||||
hrfSlider.classList.remove("invisible");
|
hrfSlider.classList.remove("invisible");
|
||||||
hrfOpotions.classList.remove("invisible");
|
hrfOpotions.classList.remove("invisible");
|
||||||
hrfLabel.classList.remove("invisible");
|
hrfLabel.classList.remove("invisible");
|
||||||
|
hrfDenoiseSlider.classList.remove("invisible");
|
||||||
//state.ctxmenu.keepUnmaskedBlurSliderLinebreak.classList.add("invisible");
|
//state.ctxmenu.keepUnmaskedBlurSliderLinebreak.classList.add("invisible");
|
||||||
} else {
|
} else {
|
||||||
hrfSlider.classList.add("invisible");
|
hrfSlider.classList.add("invisible");
|
||||||
hrfOpotions.classList.add("invisible");
|
hrfOpotions.classList.add("invisible");
|
||||||
hrfLabel.classList.add("invisible");
|
hrfLabel.classList.add("invisible");
|
||||||
|
hrfDenoiseSlider.classList.add("invisible");
|
||||||
//state.ctxmenu.keepUnmaskedBlurSliderLinebreak.classList.remove("invisible");
|
//state.ctxmenu.keepUnmaskedBlurSliderLinebreak.classList.remove("invisible");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue