#1325 Revert precision changes on some KAI/NAI sliders

This commit is contained in:
Cohee 2023-11-06 22:58:04 +02:00
parent 568f352cf6
commit 41211137fe
3 changed files with 11 additions and 13 deletions

View File

@ -323,10 +323,10 @@
</div> </div>
<div class="range-block-range-and-counter"> <div class="range-block-range-and-counter">
<div class="range-block-range"> <div class="range-block-range">
<input type="range" id="rep_pen_slope" name="volume" min="0" max="10" step="0.1"> <input type="range" id="rep_pen_slope" name="volume" min="0" max="10" step="0.01">
</div> </div>
<div class="range-block-counter"> <div class="range-block-counter">
<input type="number" min="0" max="10" step="0.1" data-for="rep_pen_slope" id="rep_pen_slope_counter"> <input type="number" min="0" max="10" step="0.01" data-for="rep_pen_slope" id="rep_pen_slope_counter">
</div> </div>
</div> </div>
@ -399,7 +399,6 @@
</div> </div>
<div class="range-block-counter"> <div class="range-block-counter">
<input type="number" min="0" max="10" step="0.01" data-for="rep_pen_slope_novel" id="rep_pen_slope_counter_novel"> <input type="number" min="0" max="10" step="0.01" data-for="rep_pen_slope_novel" id="rep_pen_slope_counter_novel">
</div> </div>
</div> </div>
</div> </div>
@ -844,10 +843,10 @@
</div> </div>
<div class="range-block-range-and-counter"> <div class="range-block-range-and-counter">
<div class="range-block-range"> <div class="range-block-range">
<input type="range" id="top_a" name="volume" min="0" max="1" step="0.01"> <input type="range" id="top_a" name="volume" min="0" max="1" step="0.001">
</div> </div>
<div class="range-block-counter"> <div class="range-block-counter">
<input type="number" min="0" max="1" step="0.01" data-for="top_a" id="top_a_counter"> <input type="number" min="0" max="1" step="0.001" data-for="top_a" id="top_a_counter">
</div> </div>
</div> </div>
@ -898,10 +897,10 @@
</div> </div>
<div class="range-block-range-and-counter"> <div class="range-block-range-and-counter">
<div class="range-block-range"> <div class="range-block-range">
<input type="range" id="tfs" name="volume" min="0" max="1" step="0.01"> <input type="range" id="tfs" name="volume" min="0" max="1" step="0.001">
</div> </div>
<div class="range-block-counter"> <div class="range-block-counter">
<input type="number" min="0" max="1" step="0.01" data-for="tfs" id="tfs_counter"> <input type="number" min="0" max="1" step="0.001" data-for="tfs" id="tfs_counter">
</div> </div>
</div> </div>
@ -1122,10 +1121,10 @@
</div> </div>
<div class="range-block-range-and-counter"> <div class="range-block-range-and-counter">
<div class="range-block-range"> <div class="range-block-range">
<input type="range" id="top_a_novel" name="volume" min="0" max="1" step="0.01"> <input type="range" id="top_a_novel" name="volume" min="0" max="1" step="0.001">
</div> </div>
<div class="range-block-counter"> <div class="range-block-counter">
<input type="number" min="0" max="1" step="0.01" data-for="top_a_novel" id="top_a_counter_novel"> <input type="number" min="0" max="1" step="0.001" data-for="top_a_novel" id="top_a_counter_novel">
</div> </div>
</div> </div>
@ -5070,4 +5069,4 @@
</script> </script>
</body> </body>
</html> </html>

View File

@ -737,7 +737,6 @@ async function firstLoadInit() {
initStats(); initStats();
initCfg(); initCfg();
doDailyExtensionUpdatesCheck(); doDailyExtensionUpdatesCheck();
// Cohee: Uncomment when we decide to use loader
hideLoader(); hideLoader();
} }

View File

@ -194,7 +194,7 @@ function loadNovelSettingsUi(ui_settings) {
$("#top_p_novel").val(ui_settings.top_p); $("#top_p_novel").val(ui_settings.top_p);
$("#top_p_counter_novel").val(Number(ui_settings.top_p).toFixed(3)); $("#top_p_counter_novel").val(Number(ui_settings.top_p).toFixed(3));
$("#top_a_novel").val(ui_settings.top_a); $("#top_a_novel").val(ui_settings.top_a);
$("#top_a_counter_novel").val(Number(ui_settings.top_a).toFixed(2)); $("#top_a_counter_novel").val(Number(ui_settings.top_a).toFixed(3));
$("#typical_p_novel").val(ui_settings.typical_p); $("#typical_p_novel").val(ui_settings.typical_p);
$("#typical_p_counter_novel").val(Number(ui_settings.typical_p).toFixed(2)); $("#typical_p_counter_novel").val(Number(ui_settings.typical_p).toFixed(2));
$("#cfg_scale_novel").val(ui_settings.cfg_scale); $("#cfg_scale_novel").val(ui_settings.cfg_scale);
@ -275,7 +275,7 @@ const sliders = [
sliderId: "#top_a_novel", sliderId: "#top_a_novel",
counterId: "#top_a_counter_novel", counterId: "#top_a_counter_novel",
format: (val) => Number(val).toFixed(2), format: (val) => Number(val).toFixed(2),
setValue: (val) => { nai_settings.top_a = Number(val).toFixed(2); }, setValue: (val) => { nai_settings.top_a = Number(val).toFixed(3); },
}, },
{ {
sliderId: "#typical_p_novel", sliderId: "#typical_p_novel",