#1325 Increase precision for Novel typical sampler

This commit is contained in:
Cohee
2023-11-06 23:43:30 +02:00
parent fb5fa8de7c
commit 2018a6d94a
2 changed files with 5 additions and 5 deletions

View File

@@ -196,7 +196,7 @@ function loadNovelSettingsUi(ui_settings) {
$("#top_a_novel").val(ui_settings.top_a);
$("#top_a_counter_novel").val(Number(ui_settings.top_a).toFixed(3));
$("#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(3));
$("#cfg_scale_novel").val(ui_settings.cfg_scale);
$("#cfg_scale_counter_novel").val(Number(ui_settings.cfg_scale).toFixed(2));
$("#phrase_rep_pen_novel").val(ui_settings.phrase_rep_pen || "off");
@@ -280,8 +280,8 @@ const sliders = [
{
sliderId: "#typical_p_novel",
counterId: "#typical_p_counter_novel",
format: (val) => Number(val).toFixed(2),
setValue: (val) => { nai_settings.typical_p = Number(val).toFixed(2); },
format: (val) => Number(val).toFixed(3),
setValue: (val) => { nai_settings.typical_p = Number(val).toFixed(3); },
},
{
sliderId: "#mirostat_tau_novel",