adds denoising slider for hrfix

This commit is contained in:
tim h 2023-01-02 17:18:50 -06:00
parent 6e14e3741f
commit 69205e5647
2 changed files with 17 additions and 2 deletions

View file

@ -103,6 +103,7 @@
<div id="hrFixScale"></div>
<label id="hrFixLabel">Choose HRfix upscaler</label>
<div id="hrFixUpscaler"></div>
<div id="hrDenoising"></div>
<input
type="checkbox"
id="cbxRestoreFaces"
@ -189,7 +190,7 @@
<br />
<span id="version">
<a href="https://github.com/zero01101/openOutpaint" target="_blank">
Alpha release v0.0.12.3
Alpha release v0.0.12.5
</a>
</span>
<br />
@ -339,7 +340,7 @@
<!-- Content -->
<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
src="js/ui/floating/history.js?v=fc92d14"

View file

@ -641,6 +641,17 @@ makeSlider(
0.1
);
makeSlider(
"HRfix Denoising",
document.getElementById("hrDenoising"),
"denoising_strength",
0.0,
1.0,
0.1,
0.7,
0.01
);
function changeMaskBlur() {
stableDiffusionData.mask_blur = parseInt(
document.getElementById("maskBlur").value
@ -661,15 +672,18 @@ function changeHiResFix() {
var hrfSlider = document.getElementById("hrFixScale");
var hrfOpotions = document.getElementById("hrFixUpscaler");
var hrfLabel = document.getElementById("hrFixLabel");
var hrfDenoiseSlider = document.getElementById("hrDenoising");
if (stableDiffusionData.enable_hr) {
hrfSlider.classList.remove("invisible");
hrfOpotions.classList.remove("invisible");
hrfLabel.classList.remove("invisible");
hrfDenoiseSlider.classList.remove("invisible");
//state.ctxmenu.keepUnmaskedBlurSliderLinebreak.classList.add("invisible");
} else {
hrfSlider.classList.add("invisible");
hrfOpotions.classList.add("invisible");
hrfLabel.classList.add("invisible");
hrfDenoiseSlider.classList.add("invisible");
//state.ctxmenu.keepUnmaskedBlurSliderLinebreak.classList.remove("invisible");
}
}