Remove REFINER_STEPS and change BASE_STEPS to REFINER_START_STEP

This commit is contained in:
Rhys Yang
2023-10-18 06:46:50 +08:00
parent bd8f669d71
commit c67cc3df84
2 changed files with 11 additions and 8 deletions
+9 -3
View File
@@ -47,9 +47,15 @@ with aspect ratio ${message.text[0]}: ${message.text[2]} x ${message.text[3]}`;
const start_at_float = parseFloat(message.text[5])
const base_percentage = Math.round(start_at_float * 100) + "%";
const refiner_percentage = Math.round((1 - start_at_float) * 100) + "%";
const step_message = `Total steps: ${message.text[4]}, refiner start at ${base_percentage},
Base steps: ${message.text[6]} (${base_percentage}), Refiner steps: ${message.text[7]} (${refiner_percentage})`;
// const refiner_percentage = Math.round((1 - start_at_float) * 100) + "%";
let step_message;
if (start_at_float === 1) {
step_message = `Total steps: ${message.text[4]},
Refiner off`;
} else {
step_message = `Total steps: ${message.text[4]},
Refiner start at step: ${message.text[6]} (${base_percentage})`;
}
this.widgets.find(obj => obj.name === "steps_display").value = step_message;
this.widgets.find(obj => obj.name === "aspect_ratio_display").value = ar_message;
+2 -5
View File
@@ -509,7 +509,6 @@ class SDParameterGenerator:
"INT",
"INT",
"INT",
"INT",
"FLOAT",
comfy.samplers.KSampler.SAMPLERS,
comfy.samplers.KSampler.SCHEDULERS,
@@ -528,8 +527,7 @@ class SDParameterGenerator:
"VAE",
"SEED",
"STEPS",
"BASE_STEPS",
"REFINER_STEPS",
"REFINER_START_STEP",
"CFG",
"SAMPLER_NAME",
"SCHEDULER",
@@ -603,7 +601,7 @@ class SDParameterGenerator:
f"Sampler: {sampler_name},\n"
f"Scheduler: {scheduler},\n"
f"Size: {str(width)}x{str(height)},\n"
f"Batch size: {str(batch_size)},\n"
f"Batch size: {str(batch_size)}\n"
)
return {
@@ -626,7 +624,6 @@ class SDParameterGenerator:
seed,
steps,
base_steps,
refiner_steps,
cfg,
sampler_name,
scheduler,